Celery - how to get task name by task id?
Finally found an answer.
For anyone wondering:
You can solve this by enabling result_extended = True
in your celery config.
Then:
result = AsyncResult(task_id, app=celery_app)
result.task_name #tasks.add
Finally found an answer.
For anyone wondering:
You can solve this by enabling result_extended = True
in your celery config.
Then:
result = AsyncResult(task_id, app=celery_app)
result.task_name #tasks.add