examples/eventlet/celeryconfig.py
raw| 1 | import os |
| 2 | import sys |
| 3 | |
| 4 | sys.path.insert(0, os.getcwd()) |
| 5 | |
| 6 | # ## Start worker with -P eventlet |
| 7 | # Never use the worker_pool setting as that'll patch |
| 8 | # the worker too late. |
| 9 | |
| 10 | broker_url = 'amqp://guest:guest@localhost:5672//' |
| 11 | worker_disable_rate_limits = True |
| 12 | result_expires = 30 * 60 |
| 13 | |
| 14 | imports = ('tasks', 'webcrawler') |