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