Implement max_queued_time (timeout) system for TaskActionCRD
The Union engine supports max_queued_time. Add this to oss: https://www.union.ai/docs/v2/union/user-guide/tasks/task-configuration/retries-and-timeouts/#max_queued_time-fail-fast-when-capacity-isnt-available
Flyte OSS supports max_queued_time via the timeout parameter in the @env.task decorator, allowing you to cap the time a task spends waiting to run (Queued + Waiting for resources) before execution begins. This is a per-attempt bound and resets on each retry; if the budget is exceeded, flyte.errors.MaxQueuedTimeExceededError is raised. See Retries and timeouts for details.
Would you like a code example or more detail on how to implement this in a TaskActionCRD?
Sources:
- https://www.union.ai/docs/v2/flyte/llms-full.txt
- https://www.union.ai/docs/v2/flyte/user-guide/tasks/task-configuration/retries-and-timeouts/#max_runtime-bound-a-single-attempts-execution
This is an AI-generated response and your feedback is appreciated! Please leave a 👍 if this is helpful and 👎 if it is not.
Mention @herald to ask follow-up questions. See runllm.com for more!
Reopening: still needs to be implemented.
Implemented in #8114