tasks.py 166 B

1234567
  1. from celery import Celery
  2. app = Celery('tasks', backend ='redis://172.104.92.245', broker='redis://172.104.92.245')
  3. @app.task
  4. def hello():
  5. return 'hello world'