I need to execute secobd celery task after the first one is ready. The first task is already running and I have its id. How can I link another one to it?
# first task first_task = change_timezone_geodata_task.delay(node.id, timezone, geodata_id) task_id= first_task .id new task = change_timezone_geodata_task.delay(node2.id, timezone2, geodata_id2)
How to make new task execute after task ?
The first thing that comes to mind as solution to your problem is to rely on Celery's task linking capability.
2.1m questions
2.1m answers
60 comments
57.0k users