2015-07-10 91 views
0

我正在使用apply_async在django中調度芹菜任務。我在計劃任務時需要獲取任務ID。獲取芹菜中計劃任務的任務ID

我需要獲取任務ID,以便在用戶選擇取消時撤銷計劃任務。

def some_function: 
     the_fn_to_be_called.apply_async(kwargs={my_arguments}, countdown=countdown_in_secs) 

回答