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

fix batch status incorrectly transitioning to Waiting #1212

Merged

Conversation

nilsgstrabo
Copy link
Contributor

@nilsgstrabo nilsgstrabo commented Oct 17, 2024

A RadixBatch will temporary transition from Active to Waiting when the Pod is finished (success or failed) in which k8s Job has status.active unset. To fix this we will reuse the last know RadixBatchJobStatus.Phas for the job instead of defaulting to BatchJobPhaseWaiting.

This change will also inspect the k8s job's Status.UncountedTerminatedPods to transtition to completed or failed faster, and thereby preventing on unnecessary update of RadixBatch status, which will trigger an unnecessary informer event to the job scheduler webhook.

@nilsgstrabo nilsgstrabo requested a review from satr October 17, 2024 14:18
@nilsgstrabo nilsgstrabo self-assigned this Oct 17, 2024
@nilsgstrabo nilsgstrabo merged commit 3c4e682 into master Oct 18, 2024
5 checks passed
@nilsgstrabo nilsgstrabo deleted the bugfix-batchjob-condition-transitions-back-to-waiting branch October 21, 2024 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants