Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[armada-scheduler] Fix a bug in syncState causing follower state to b…
…e wrong (#2757) The bug is causing the follower armada-scheduler to accumulate non-terminate jobs, where the leader was correctly marking these jobs are terminated The bug would happen if we receive an update that marks the job as terminal at the same time we receive a job_run update for that job. - We would then delete the job (as it is terminal) and then immediately add the job back as it had run update - This wouldn't cause an issue in the leader, as it already considered the job terminal so would go down a different code path This PR is the minimal fix for the above issue - which is to upsert job updates before we try to delete jobs
- Loading branch information