简体   繁体   中英

Celery - how to stop running task when using distributed RabbitMQ backend?

If I am running Celery on (say) a bank of 50 machines all using a distributed RabbitMQ cluster.

If I have a task that is running and I know the task id, how in the world can Celery figure out which machine its running on to terminate it?

Thanks.

我不确定您是否真的可以执行此操作,当您生成任务时,您会在50个盒子中的某个位置有一个工人,该工人执行该任务,并且从技术上讲您无法控制它,因为这是一个单独的过程,并且您唯一可以做的控制是队列上的asyncResult还是amqp消息。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM