celery.py 295 B

1234567891011121314
  1. from celery import Celery
  2. app = Celery('proj',
  3. broker='amqp://',
  4. backend='amqp://',
  5. include=['proj.tasks'])
  6. # Optional configuration, see the application user guide.
  7. app.conf.update(
  8. result_expires=3600,
  9. )
  10. if __name__ == '__main__':
  11. app.start()