Advertisement
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$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement