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

retry executing a scan on a node if azure responds with a conflict msg #297

Open
vjeffrey opened this issue May 9, 2019 · 1 comment
Open
Labels
node integrations This issue or pull request applies to work related to the node integrations

Comments

@vjeffrey
Copy link

vjeffrey commented May 9, 2019

User Story

Sometimes Azure RunCommand jobs will respond with a conflict msg error noting that another job is already running on those nodes.
It would be nice if we could recognize this error, and upon receipt of it, wait about 60 sec and then retry. maybe we can have a 3 time retry, 60 seconds wait between each retry?
Let's play around with it and see how things go.

Definition of Done

Azure RunCommand nodes get a retry if conflict msg.

@vjeffrey vjeffrey added the node integrations This issue or pull request applies to work related to the node integrations label May 9, 2019
@vjeffrey
Copy link
Author

vjeffrey commented May 9, 2019

Looks like we already have some code dedicated to retries here: https://github.com/chef/automate/blob/master/components/compliance-service/inspec-agent/remote/remote.go#L76 that handles aws throttling exceptions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
node integrations This issue or pull request applies to work related to the node integrations
Projects
None yet
Development

No branches or pull requests

1 participant