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