开发者

delete Task / PeriodicTask in celery

开发者 https://www.devze.com 2022-12-25 21:12 出处:网络
How can I de开发者_如何学Clete a regular Task or PeriodicTask in celery?You revoke the task: See documentation:

How can I de开发者_如何学Clete a regular Task or PeriodicTask in celery?


You revoke the task: See documentation:

Control.revoke(task_id, destination=None, terminate=False, signal='SIGTERM', **kwargs)
    Tell all (or specific) workers to revoke a task by id.

    If a task is revoked, the workers will ignore the task and not execute it after all.

    Parameters: 
        task_id – Id of the task to revoke.
        terminate – Also terminate the process currently working on the task (if any).
        signal – Name of signal to send to process if terminate. Default is TERM.
0

精彩评论

暂无评论...
验证码 换一张
取 消