[Fixed]-Python raven timing out when using django logging from a celery worker

1👍

If you’re using the default Celery worker model things should generally just work. If you’re using something else that may be less true.

The Python client by default uses a threaded worker. Meaning, upon instantiation, it creates a queue and a thread to process messages asynchronously. If this happens in various ways it could cause problems (i.e. pre-fork), or if you’re using something like gevent and not patching threads.

You can try changing the transport to be synchronous to confirm this is related:

https://docs.getsentry.com/hosted/clients/python/transports/

Leave a comment