Skip to content
This repository was archived by the owner on Jun 27, 2025. It is now read-only.

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

Merged
jrasell merged 3 commits intomasterfrom
gh-263
Feb 25, 2019
Merged

Fix deploy loop bug when evaluation didn't include a deployment ID.#268
jrasell merged 3 commits intomasterfrom
gh-263

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant