Skip to content

Instantly share code, notes, and snippets.

@greggyNapalm
Created May 22, 2014 09:33
Show Gist options
  • Save greggyNapalm/9d364a632a3a107d8eaf to your computer and use it in GitHub Desktop.
Save greggyNapalm/9d364a632a3a107d8eaf to your computer and use it in GitHub Desktop.
from raven import Client
from raven.conf import setup_logging
from raven.handlers.logging import SentryHandler
from raven.contrib.celery import register_signal
from celery import Celery
celery = Celery()
celery.config_from_object(celeryconfig)
sentry_client = Client(worker_cfg['sentry_dsn'])
register_signal(sentry_client)
bla.. bla.. bla..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment