celery.worker.strategy

celery.worker.strategy

Task execution strategy (optimization).

celery.worker.strategy.default(task, app, consumer, info=<bound method ProcessAwareLogger.info of <celery.utils.log.ProcessAwareLogger object at 0xd91676c>>, error=<bound method ProcessAwareLogger.error of <celery.utils.log.ProcessAwareLogger object at 0xd91676c>>, task_reserved=<built-in method add of set object at 0xbd4833c>, to_system_tz=<bound method _Zone.to_system of <celery.utils.timeutils._Zone object at 0xac8d82c>>)[源代码]