Open Skorpyon opened 6 years ago
I'm assuming you have configured eventlet
to monkey patch Queue
and you are using the celery eventlet option. Try using raven.transport.eventlet.EventletHTTPTransport
.
By any chance, do you know of an example of patching the Sentry class within Flask? It seems straightforward to do it with Client....? This may be a better question for stack overflow, anyways..
@dhhagan
from raven.base import Client
from raven.transport.eventlet import EventletHTTPTransport
from raven.contrib.flask import Sentry
client = Client(dsn='http://...', transport=EventletHTTPTransport)
sentry = Sentry(app, client=client)
I using Celery and Django and each time got exception during Celery process exit.
Python==3.6.1
Django==2.0 celery==4.1.0 eventlet==0.22.0 raven==6.5.0
Celery launched with params:
-A streamtelecom.settings.celery:consumer_app worker -P eventlet -c 1000 -l warning
When main process receive exit signal it fail with exception in raven: