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

[STRMCMP-661] Fix bug that could lead to multiple job submission #111

Merged
merged 4 commits into from
Oct 2, 2019

Conversation

mwylde
Copy link
Contributor

@mwylde mwylde commented Oct 2, 2019

This PR fixes a bug that could lead to multiple jobs being submitted during the SubmittingJob phase. This would happen if a job was failing during the deploy process; because the activeJobs filter was excluding failing jobs, the operator would think that there was no job running and would resubmit another.

I've also taken this opportunity to make the operator more opinionated about which job it's managing in the cluster. Whereas previously we would query for all jobs in the cluster and take the first "active" one, we now rely on the jobId we've stored in our state to determine which is our job.

If this changes somehow from underneath us (like if the user cancels the job through the API and submits a new job) we should not continue on as if everything is well, as future operations are likely to fail or lead to unexpected outcomes anyways.

@mwylde mwylde merged commit 2cff272 into master Oct 2, 2019
@mwylde mwylde deleted the micah_fix_multiple_submissions branch October 2, 2019 23:12
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