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

WIP: Adds max retries to Job #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tallysmartins
Copy link
Member

@tallysmartins tallysmartins commented Aug 15, 2018

A few considerations here:

Consideration 1
I've considered two ways of incrementing claim_count, and I need feedback to know which one is more appropriate.

  1. First one is just doing claim_count + 1
  2. Second one is a method increment_claim_count which is binded by prepare_changes to increment claim_count when the changeset transaction is completed.

From my point of view, first approach works and do not seems to present too much trouble considering possible concurrency between the runners queries.

Consideration 2
Do we need this configuration to be in the environment or something or are you ok with a module attr @max_retries 3?

Signed-off-by: Tallys Martins <tallysmartins@gmail.com>
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