Skip to content

Commit

Permalink
rq: don't use failed queue
Browse files Browse the repository at this point in the history
  • Loading branch information
brutasse committed Mar 22, 2017
1 parent c202692 commit 7d6d953
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions feedhq/feeds/management/commands/rqworker.py
Expand Up @@ -9,8 +9,8 @@

def sentry_handler(job, *exc_info):
if 'SENTRY_DSN' not in os.environ:
# Use the next exception handler (send to failed queue)
return True
# Don't escalate to other handlers
return False
client = Client()
client.captureException(
exc_info=exc_info,
Expand Down Expand Up @@ -38,5 +38,5 @@ def handle_sentry(self, *args, **options):
conn = get_redis_connection()
with Connection(conn):
queues = map(Queue, options['queues'])
worker = Worker(queues, exc_handler=sentry_handler)
worker = Worker(queues, exception_handlers=[sentry_handler])
worker.work(burst=options['burst'])

0 comments on commit 7d6d953

Please sign in to comment.