1 min readOct 17, 2016
My Celery Notes
- Don’t use database as your AMQP broker
- Use more queues
- User priority workers
- Use celery’s error holding mechanism
- Use Flower
- Keep track of results only if you really need them
- Dont pass ORM object to task, pass id instead
- Revoking tasks
- Task Canvas
- celery batches
- flower, jobtastic, django admin, cyme
- Chains — Linking one to another
- Groups — Execute several task in parallel
- Chord — Execute a task after a set of tasks has finished
- Map and starmap — Similar to starmap function
- Chunks — divide an iterable of work into chunks
- Chunks + Chord/Chain — Can be used to map reduce
virtual hosts, exchanges, queues and bindings