celery.worker.loops
celery.worker.loop
The consumers highly-optimized inner loop.
celery.worker.loops.asynloop(obj, connection, consumer, blueprint, hub, qos, heartbeat, clock, hbrate=2.0, RUN=1)[源代码]
Non-blocking event loop consuming messages until connection is lost, or shutdown is requested.
celery.worker.loops.synloop(obj, connection, consumer, blueprint, hub, qos, heartbeat, clock, hbrate=2.0, \*kwargs*)[源代码]
Fallback blocking event loop for transports that doesn’t support AIO.