Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. daniel95@daniel95-G3-3579:~/work/python$ cat cel.py
  2. #!/usr/bin/python
  3. from celery import Celery
  4.  
  5. app = Celery('tasks', broker='ampq://localhost')
  6.  
  7. @app.task
  8. def add(x, y):
  9. return x + y
  10. daniel95@daniel95-G3-3579:~/work/python$ python cel.py
  11. daniel95@daniel95-G3-3579:~/work/python$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement