celery.worker.strategy

Task execution strategy (optimization).

celery.worker.strategy.default(task, app, consumer, info=<bound method Logger.info of <Logger celery.worker.strategy (WARNING)>>, error=<bound method Logger.error of <Logger celery.worker.strategy (WARNING)>>, task_reserved=<function task_reserved>, to_system_tz=<bound method _Zone.to_system of <celery.utils.time._Zone object>>, bytes=<class 'bytes'>, proto1_to_proto2=<function proto1_to_proto2>)[исходный код]

Default task execution strategy.

Примечание

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

Вернуться на верх