You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The task is stuck in a queued state forever in case of pod launch errors #36403
When the K8 executor is unable to launch the worker pod due to permissions issues or an invalid namespace. The K8 executor keep trying to launch the worker pod and the errors remain persist. So, the task ends up in a queued state for so long/forever.
What you think should happen instead
We shouldn't retry the worker pods launch continuously in case of persistent/transient errors. Let the executor mark them as failed and let the scheduler honor the task retries with retry delay (5 mins) and then fail the task eventually if the error persists.
How to reproduce
We can try the following scenarios
a> Provide incorrect namespace in prod_override configuration
b> Role that doesn't have permissions to launch the pod in a specific namespace
c> namespace quota exhausted
changed the title [-]K8 exectuor retring on launching the worker pods forver in case of persistant errors[/-][+]The task is stuck in a queued state forever in case of pod launch errors[/+]on Dec 24, 2023
Activity
[-]K8 exectuor retring on launching the worker pods forver in case of persistant errors[/-][+]The task is stuck in a queued state forever in case of pod launch errors[/+]potiuk commentedon Dec 24, 2023
feel free to attempt to handle it
adihakimi commentedon Dec 25, 2023
We’re facing the same issue on v2.6.3.
We thought that ‘scheduler_task_queued_timeout’ might help but it doesn’t.
dirrao commentedon Dec 25, 2023
Existing options doesn't help here. I am going to raise a MR to fix this issue very soon.
RNHTTR commentedon Jan 17, 2024
Hey @dirrao -- Wondering if you had a chance to open a PR for this?
dirrao commentedon Jan 18, 2024
@RNHTTR The MR is ready and I will most likely to raise the MR in this week.