2010-04-01 84 views

回答

15

revoke任务:见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

,我怎么能得到所有任务列表? – timger 2013-06-19 09:33:23