-
Notifications
You must be signed in to change notification settings - Fork 125
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
Add retry to autorevert to ensure correct deploy is tracked. #134
Conversation
In some situations, Levant was calling Nomad before a new deployment had been started for the auto-revert meaning the original failed deployment ID was returned and checked. This change adds logic to ensure Levant waits for an updated deployment ID before running the auto-revert checker. Closes #133
tagging @wlonkly |
Heya! I gave it a shot with my test case, but
|
hmmmm that is interesting @wlonkly and something I didn't see when I did my testing. I will take another look using the trace. |
@jrasell Thanks! I should've mentioned too that this was built with Go 1.10. Also if you want to rule out something amiss in my toolchain, if you want to toss a Linux x86_64 binary my way I'd be happy to test that out too. |
When the canary value in not set in a job by the user, the struct Levant uses will be set to null and not 0 as it does not go through any merging with the default config. This should be updated at a later date.
@wlonkly I believe I have now fixed it for the short term; although I will look at fixing this is a better manner in the future. |
Sorry about the silence on this one, been on vacation! I've built master and verified that it successfully tracks the auto_revert deployment. Thanks! |
In some situations, Levant was calling Nomad before a new
deployment had been started for the auto-revert meaning the
original failed deployment ID was returned and checked. This change
adds logic to ensure Levant waits for an updated deployment ID
before running the auto-revert checker.
Closes #133