I have celery app with Redis as broker.
The code consist of the following in a loop :
running = []
res = add.apply_async([1,2], queue='add')
running.append(res)
while running:
r = running.pop()
if r.ready():
print r.get()
else:
running.insert(0,r)
everything works fine but when i redis-cli
into redis and execute keys *
I see bunch of celery-task-meta keys.
Why arent they cleaned up?
What are those for?
--
[EDIT]
I've read about CELERY_TASK_RESULT_EXPIRES setting.
Is it possible for the task keys in Redis to be cleaned up right after the result is read rather than wait until the expiration time?