Skip to content

Avoid race condition in deploy to unpause#1088

Merged
ssalinas merged 3 commits into
masterfrom
deploy_to_unpause
Jun 21, 2016
Merged

Avoid race condition in deploy to unpause#1088
ssalinas merged 3 commits into
masterfrom
deploy_to_unpause

Conversation

@ssalinas
Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor 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.

1 participant