django-celery icon indicating copy to clipboard operation
django-celery copied to clipboard

unable to use ready() or get() to get task results from group using django-celery

Open professorDante opened this issue 10 years ago • 2 comments

Django celery 3.1.16.

I have the workers started with -E, I have celerycam running. Results of async tasks are recorded to the database. Now I am trying to access the results of the celery group() tasks synchronously by using

group = group(celery_task.s(id) for id in big_list)() if group.ready(): do stuff

calling group.ready() always returns False, and calling group.get() hangs forever. If I stop the thread, and use the groups task_id the next time round, it all works. Results are there. So how to access the results synchronously??

professorDante avatar Dec 06 '14 20:12 professorDante

I have similar issue. Even restarting the worker does not help. .get() hangs. I'm using Celery 3.1.20. I:n the console, I see that the tasks have actually finished running. But .get() does not fetch the results.

Update. It turns out the backend was pointing to a Memcached server and memcached was not running on that server. After turning on memcached, it started working.

bngsudheer avatar Aug 29 '16 16:08 bngsudheer

are you trying master branch?

auvipy avatar Sep 02 '16 05:09 auvipy