From 07883f5501e8137683747d94b1d8ea55f283afb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Fievet?= <_@sebastien-fievet.fr> Date: Tue, 6 Dec 2016 10:09:58 +0100 Subject: [PATCH] Use HTTPTransport transport so sentry reporting works by default --- rq/cli/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rq/cli/cli.py b/rq/cli/cli.py index fb0dc8e..27dd78c 100755 --- a/rq/cli/cli.py +++ b/rq/cli/cli.py @@ -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)