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

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)[source]

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)[source]

Fallback blocking event loop for transports that doesn’t support AIO.