Add background task to monitor and cancel stuck pending pods#1167
Open
Add background task to monitor and cancel stuck pending pods#1167
Conversation
zentron
approved these changes
Mar 8, 2026
Contributor
zentron
left a comment
There was a problem hiding this comment.
Makes sense.
Is there any information or event data that would be useful logging?
If it is marked as completed and cleaned up, it may be harder to diagnose why it was hanging.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
We have situation where the script pods can't be scheduled and remain in a
Pendingstate. This is a problem because unless you have a step level timeout configured, the deployment will run for ever.Results
Adds a new
PendingPodWatchDogtask that monitors all pods and if they are pending for more than a set period, then they are marked as timedout (which then causes them to be deleted).Will be controlled by a value in the Helm Chart, but if this is not set, the watchdog does not run
After
How to review this PR
Quality ✔️
Pre-requisites