-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KubernetesJobTask "No pod scheduled" error #2570
Comments
I have same issues. |
@keisuke-umezawa I've managed to fix it with the code above. Just create a custom |
@StasDeep Thanks! Do you have example how to override |
Yep. Something like that:
Note that |
It seems reasonable to me to allow there to be some amount of wait time and attempts for a POD to become available. Of course, it should be configurable. Happy to review a PR! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If closed, you may revisit when your time allows and reopen! Thank you for your contributions. |
I often see the following error when using
KubernetesJobTask
:It is hard to reproduce, but seems like sometimes pod needs a bit more time to be created, but task does not wait for it to be created and ends up raising the error. Task gets FAILED status, but a pod is still created and is run without Luigi control.
When the task is restarted and not failed, a pod is run under Luigi control, but there's still that uncontrolled pod, so we end up having two pods making the same thing.
I've managed to fix it the most naive way. When getting pods to verify that they are started, instead of:
I do the following:
This is not a beautiful way of fixing the issue, but it works (though it will for sure fail if pod needs >45 seconds to be started).
The text was updated successfully, but these errors were encountered: