Skip to content

Instantly share code, notes, and snippets.

@slackorama
Created July 11, 2012 04:55
Show Gist options
  • Save slackorama/3088106 to your computer and use it in GitHub Desktop.
Save slackorama/3088106 to your computer and use it in GitHub Desktop.
from celery import Celery
celery = Celery('tasks', backend='amqp',
broker='amqp://guest:guest@localhost:5672/md5')
class Borked(Exception):
pass
@celery.task
def add(x, y):
raise Borked('DEAD!')
return x + y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment