Created
July 11, 2012 04:55
-
-
Save slackorama/3088106 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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