Reputation: 143
I have a fairly simple question - I am under the impression that Celery (with Redis) pushes each task to the Redis List called 'celery' by default.
I wanted to be able to see this Redis List in order to use it in other applications (to see the task lengths), but when I view my Redis Queue to see how long the 'celery' Redis List is (given that my tasks are launched in that Queue), it's not there.
Note: using Docker with Redis Image 5.0 on Port 3780 (to isolate it from the rest of my Django Application)
According to this: https://stackoverflow.com/a/43420719/10112899 I should be able to just query the length of the celery queue I specified (default = celery), but it's not there!
Here's what the Redis CLI gives me:
Question: Does Celery For Django and Python Not Use Redis Lists at all?
Upvotes: 0
Views: 766
Reputation: 5388
Celery does use Redis LIST/ZSET but there're certain things to remember. If any collection is empty then Redis deletes the key so if you push a couple of entries then you should be able to identify queues.
Upvotes: 1