Use HTTPTransport transport so sentry reporting works by default

main
Sébastien Fievet 10 years ago
parent 6721463fdf
commit 07883f5501
No known key found for this signature in database
GPG Key ID: 1CD4A538F30AA6F5

@ -199,8 +199,9 @@ def worker(url, config, burst, name, worker_class, job_class, queue_class, conne
# Should we configure Sentry?
if sentry_dsn:
from raven import Client
from raven.transport.http import HTTPTransport
from rq.contrib.sentry import register_sentry
client = Client(sentry_dsn)
client = Client(sentry_dsn, transport=HTTPTransport)
register_sentry(client, w)
w.work(burst=burst)

Loading…
Cancel
Save