[Solved]-Is it possible to query state of a celery tasks using django-celery-results during the execution of a task?
5👍 ✅ After reviewing the source code of django-celery-result it turns out the code is pretty simple and straight-forward. In order to use django-celery-result to store tasks after the task function is called use the following: from django_celery_results.models import TaskResult import json @shared_task(bind=True) def foo(self, count): print(‘hello’) task_result = TaskResult.objects.get(self.request.id) counter = 1 interval = … Read more