Skip to content
This repository was archived by the owner on Oct 30, 2020. It is now read-only.

Retry failed submissions, possibily on a different queue#18

Merged
alanjds merged 7 commits intomasterfrom
retry-failed
Aug 15, 2018
Merged

Retry failed submissions, possibily on a different queue#18
alanjds merged 7 commits intomasterfrom
retry-failed

Conversation

@alanjds
Copy link
Copy Markdown
Contributor

@alanjds alanjds commented Aug 13, 2018

This allows a dead-letter queue to be set easily, for retries of failed submissions

@alanjds alanjds requested a review from sbneto August 13, 2018 23:12
@codecov
Copy link
Copy Markdown

codecov bot commented Aug 13, 2018

Codecov Report

Merging #18 into master will increase coverage by 3%.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #18   +/-   ##
=======================================
+ Coverage   93.15%   96.15%   +3%     
=======================================
  Files           3        3           
  Lines         146      156   +10     
  Branches       20       21    +1     
=======================================
+ Hits          136      150   +14     
+ Misses          5        2    -3     
+ Partials        5        4    -1
Impacted Files Coverage Δ
celery_executor/executors.py 95.31% <100%> (+3.78%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5d38de8...bfc2377. Read the comment docs.

Copy link
Copy Markdown
Contributor

@sbneto sbneto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Minor rewriting
  • Maybe some tests?

try:
return func(*args, **kwargs)
except Exception as exc:
retry_kwargs = (metadata or {}).get('retry_kwargs', {})
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe metadata.get('retry_kwargs', {}) if metadata else {}?

@alanjds alanjds merged commit 221811e into master Aug 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants