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

Fix deploy loop bug when evaluation didn't include a deployment ID. #268

Merged
merged 3 commits into from
Feb 25, 2019

Conversation

jrasell
Copy link
Member

@jrasell jrasell commented Feb 25, 2019

In situations where the deployed evaluations didn't invoke a
deployment, the return from the Nomad eval endpoint would include
an empty deployment ID. Levant would continue to retry until the
deployment ID object was populated, which possibly wouldn't
happen causing Levant to get stuck in a loop forever.

This change adds a timeout into the function which performs the
above work, so that if after 60s no deployment ID has been
returned, Levant will exit with a useful message.

Closes #263

In situations where the deployed evaluations didn't invoke a
deployment, the return from the Nomad eval endpoint would include
an empty deployment ID. Levant would continue to retry until the
deployment ID object was populated, which possibly wouldn't
happen causing Levant to get stuck in a loop forever.

This change adds a timeout into the function which performs the
above work, so that if after 60s no deployment ID has been
returned, Levant will exit with a useful message.

Closes #263
@jrasell jrasell self-assigned this Feb 25, 2019
@jrasell jrasell merged commit 4bff93a into master Feb 25, 2019
@jrasell jrasell deleted the gh-263 branch February 25, 2019 10:00
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