Skip to content
All lessons

Tech Insights

How to get quantity of tasks in Celery and Redis from the default queue.

import redis from django.conf import settings queue_name = "celery" client = redis.Redis.from_url(settings.REDIS_URL) length = client.llen(queue_name)

Shared by

  • Celery
  • Django
  • Redis

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