SHARE
TWEET

Untitled




Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- daniel95@daniel95-G3-3579:~/work/python$ cat cel.py
- #!/usr/bin/python
- from celery import Celery
- app = Celery('tasks', broker='ampq://localhost')
- @app.task
- def add(x, y):
- return x + y
- daniel95@daniel95-G3-3579:~/work/python$ python cel.py
- daniel95@daniel95-G3-3579:~/work/python$
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.