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

Track RETRY events #2

Open
trifle opened this issue Jul 25, 2016 · 0 comments
Open

Track RETRY events #2

trifle opened this issue Jul 25, 2016 · 0 comments
Assignees
Milestone

Comments

@trifle
Copy link

trifle commented Jul 25, 2016

Hi,

just an idea - in many cases, it's interesting to track the number of tasks that were retried.
That's especially useful to know when communicating with an external service.

Adding this should be as easy as changing this line:

https://github.com/tourbillonpy/tourbillon-celery/blob/master/tourbillon/celery/celery2.py#L46

from if task.state in ['SUCCESS', 'FAILURE'] and \
to if task.state in ['SUCCESS', 'FAILURE', 'RETRY'] and \.

@ffaraone ffaraone added this to the 0.5 milestone Jul 25, 2016
@ffaraone ffaraone self-assigned this Jul 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants