12345678910111213141516 |
- from __future__ import absolute_import, unicode_literals
- from celery import Celery
- app = Celery('proj',
- broker='amqp://',
- backend='amqp://',
- include=['proj.tasks'])
- # Optional configuration, see the application user guide.
- app.conf.update(
- result_expires=3600,
- )
- if __name__ == '__main__':
- app.start()
|