Celery: Interact/Communicate with a running task
问题 A related (albeit not identical) question appears here: Interact with celery ongoing task It's easy to start a task and get its unique ID: async_result = my_task.delay() task_id = async_result.task_id It's easy to broadcast a message that will reach a custom command in the worker: my_celery_app.control.broadcast('custom_command', arguments= {'id': task_id}) The problem arises that the worker is started in the form of a small process tree formed of one supervisor and a number of children. The