Commit 52456552 by Guba Sándor Committed by Őry Máté

activity: fixed get_percentage parameter based on job info

parent 50555ea6
......@@ -124,8 +124,11 @@ class InstanceActivity(ActivityModel):
def get_percentage(self):
"""Returns the percentage of the running operation if available.
if self.has_percentage():
result = celery.AsyncResult(id=self.task_uuid)
if self.has_percentage() and is not None:
return 0
def is_abortable(self):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment