This document describes the current stable version of Celery (4.1). For development docs, go here.


Task execution strategy (optimization).

celery.worker.strategy.default(task, app, consumer, info=<bound method of <logging.Logger object>>, error=<bound method Logger.error of <logging.Logger object>>, task_reserved=<function task_reserved>, to_system_tz=<bound method _Zone.to_system of <celery.utils.time._Zone object>>, bytes=<type 'str'>, buffer_t=<type 'buffer'>, proto1_to_proto2=<function proto1_to_proto2>)[source]

Default task execution strategy.


Strategies are here as an optimization, so sadly it’s not very easy to override.