Cancel an already executing task with Celery?

后端 未结 5 1557
轻奢々
轻奢々 2020-11-27 09:57

I have been reading the doc and searching but cannot seem to find a straight answer:

Can you cancel an already executing task? (as in the task has started, takes a w

5条回答
  •  清歌不尽
    2020-11-27 10:36

    See the following options for tasks: time_limit, soft_time_limit (or you can set it for workers). If you want to control not only time of execution, then see expires argument of apply_async method.

提交回复
热议问题