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)
task_dosomething is your task function name.
Works on windows 8
Abdur-Rahmaan Janhangeer
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)
task_dosomething is your task function name.
Works on windows 8
Written by
Chef
Python author of 9+ years having worked for Python companies around the world
Using celery 5.1.2 you can get the task id by the following code snippet: from celery import current…
Read articleI was looking through Grinberg’s tuto on celery and flask. I saw querying tasks by task = long_task.…
Read articleWant to create unique UI components tailored to your app’s needs? This Python EFL tutorial teaches y…
Read article