Skip to content
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

Executor: delete pod when tasksetup fail #330

Closed
alessandro-sorint opened this issue Mar 15, 2022 · 1 comment · Fixed by #343
Closed

Executor: delete pod when tasksetup fail #330

alessandro-sorint opened this issue Mar 15, 2022 · 1 comment · Fixed by #343
Labels
enhancement New feature or request

Comments

@alessandro-sorint
Copy link
Contributor

What would you like to be added: We would like to add automatic deleting of the pod when the task setup fail

Why is this needed: when for example the init container don't find the image, or we have reached the docker rate limits, the pod init fail(and fail the task) but the pod is not deleted; it remain in ImagePullBackOff status

@alessandro-sorint alessandro-sorint added the enhancement New feature or request label Mar 15, 2022
@alessandro-sorint
Copy link
Contributor Author

My idea is to add a status field in the Pod interface.
I think we have to convert the k8s/docker status in an agola type string, I investigate what status value return k8s and docker driver.
Using the podsCleaner routine we can delete the pod if the status is "failed"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant