Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/19.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 查找已完成任务的百分比_Python_Python 3.x_Celery_Percentage - Fatal编程技术网

Python 查找已完成任务的百分比

Python 查找已完成任务的百分比,python,python-3.x,celery,percentage,Python,Python 3.x,Celery,Percentage,如果在芹菜中提供ID,有没有办法找到完成任务的百分比?比如: >>> a4654.percentage() 93% 没有。芹菜不处理任务逻辑。你写的。这意味着芹菜无法知道一项任务完成了多少工作。但是,您可以将其作为任务逻辑的一部分来实现

如果在芹菜中提供ID,有没有办法找到完成任务的百分比?比如:

>>> a4654.percentage()
    93%

没有。芹菜不处理任务逻辑。你写的。这意味着芹菜无法知道一项任务完成了多少工作。但是,您可以将其作为任务逻辑的一部分来实现