SHARE
TWEET

Untitled

a guest Oct 15th, 2019 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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$
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. OK, I Understand
 
Top