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

# `celery.worker.loops`

The consumers highly-optimized inner loop.

celery.worker.loops.asynloop(obj, connection, consumer, blueprint, hub, qos, heartbeat, clock, hbrate=2.0)

  Non-blocking event loop.

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.