Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

Transient error retry on start #160

Merged

Conversation

markshaule-wf
Copy link
Contributor

Re-opened PR against Workiva/furious

Original PR here: markshaule-wf#1

Async Changes:
Async.start() now sleeps before attempting to re-add task on a TransientError.
Add option retry_transient_errors to override the retry behaviour in Async.start(). False can be specified to just re-raise the TransientError, and not attempt a retry.

Context Changes:
Context _insert_tasks now re-raises TransientError if retry option has been set to False.
Renamed parameter 'retry_errors' to 'retry_transient_errors' in _insert_tasks function.
_insert_tasks - retry_transient_errors parameter is now passed onto recursive calls correctly.

Notes on compatibility:
Since I've renamed the parameter for _insert_tasks, that could potentially break someone's custom implementation of that function.

…o retry_transient_errors False.

Renamed parameter in _insert_tasks 'retry_errors' to 'retry_transient_errors' for clarity.
Pass retry_transient_errors parameter onto recursive calls in _insert_tasks when we are splitting and retrying errors.
… to re-add a task in Async.start() method.

Add option to override retry of TransientErrors in the Async.start() method
…ansactional=True has been specified in context, or Async.start()
@beaulyddon-wf
Copy link
Contributor

+1

beaulyddon-wf added a commit that referenced this pull request Jan 19, 2015
@beaulyddon-wf beaulyddon-wf merged commit 8f4b36f into Workiva:master Jan 19, 2015
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.

2 participants