1234567891011121314 |
- 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()
|