-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Handling error emails going forward? #3588
Comments
@jdotjdot take a look at https://sentry.io |
I currently use Opbeat but I want to actually send them from Celery--also On Sunday, November 13, 2016, Stephen J. Fuhry notifications@github.com
|
You can implement your own base task like this to handle errors however you would like: http://docs.celeryproject.org/en/latest/userguide/tasks.html#task-inheritance |
Thanks. And |
No, when Try using The process manager I'd suggest mimicking that pattern if you are able.
http://celery.readthedocs.io/en/latest/userguide/workers.html#process-signals |
I am aware of that this--unfortunately I have no control over what signals are sent or when, our celery workers currently are on Heroku and Heroku follows this shutdown process when dynos restart for any reason. I was always shocked that when celery tasks were shut down by Because there appears to be no clean way in tasks to listen for If |
The best I've got since I know RabbitMQ well is to make all task idempotent and use the new |
Interesting, I'm surprised you got the error email after That being the case, I'd suspect that |
Is it possible that I'm actually wrong, and that what is happening is that the celery worker is receiving the |
All errors in Celery are logged, so make sure you set sentry or other monitoring tools to listen for all types of Celery error logs, not just in the on_failure signal. It used to be necessary to configure special support for Celery in Sentry, this was done to register |
Thanks. We use Django, so I could simply configure the celery logger to use |
The changelog says that all email-related functionality has been removed. We made heavy use of the error emails feature in Celery.
Since this is removed, what is now the recommended way to handle errors in Celery tasks?
If we were to reimplement the error email sender internally, where would be the right place to hook that?
Thanks!
The text was updated successfully, but these errors were encountered: