Skip to content
All lessons

Tech Insights· docs.celeryproject.org

To list the current Celery tasks names in Redis queue, use:

import json import base64 from redis import StrictRedis redis_client = StrictRedis.from_url(BROKER_URL) default_queue = redis_client.lrange('celery', 0, -1) print({json.loads(base64.b64decode(json.loads(message.decode('utf-8'))['body']).decode('utf-8'))['task'] for message in default_queue}) For reserved and active, use app.control.inspect(): #inspecting-workers

Shared by

Read on docs.celeryproject.org
  • Celery
  • Python

Book a call

Lessons like this one
shape how we build.

Tell us what you’re building. In one call, we’ll show you how our team would approach it.

Tell us what you’re building, and we’ll show you how we’d approach it.

Still prefer the good old email? Contact us