distributed systems
How to solve celery task has no attribute AsyncResult
I was looking through Grinberg’s tuto on celery and flask. I saw querying tasks by …
Abdur-Rahmaan Janhangeer
Chef
3 articles in this category.
I was looking through Grinberg’s tuto on celery and flask. I saw querying tasks by …
Abdur-Rahmaan Janhangeer
Chef
Using celery 5.1.2 you can get the task id by the following code snippet: from celery import current_app as celery_app # in your function: celery_app.tasks['…
Abdur-Rahmaan Janhangeer
Chef
Here’s a convenient way to set task id in celery: import uuid # in-built in Python task_id = str(uuid.uuid1()) task_dosomething.apply_async(task_id=task_id) …
Abdur-Rahmaan Janhangeer
Chef