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

Avoid race condition in deploy to unpause #1088

Merged
merged 3 commits into from Jun 21, 2016
Merged

Conversation

ssalinas
Copy link
Member

If the request status is not updated to DEPLOY_TO_UNPAUSE before the deploy is saved. It is possible that the deploy checker can run the first check of the deploy while the request is still in the paused state. This code path also left the deploy in a waiting state with no message.

Changes here move the request state update before the deploy save, and will also be sure to complete the deploy with a failure when hitting the code path where request state is not valid to proceed with the deploy

@ssalinas
Copy link
Member Author

This one is gtg, going to merge

@ssalinas ssalinas merged commit b13ea17 into master Jun 21, 2016
@ssalinas ssalinas deleted the deploy_to_unpause branch June 21, 2016 20:12
@ssalinas ssalinas added this to the 0.9.0 milestone Jul 29, 2016
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.

None yet

1 participant