Commit 31e48a88 by Dudás Ádám

vm: is_aborted property for InstanceActivity

parent 9bc2639a
......@@ -107,6 +107,15 @@ class InstanceActivity(ActivityModel):
op = self.instance.get_operation_from_activity_code(self.activity_code)
return self.task_uuid and op and op.abortable and not self.finished
def is_aborted(self):
"""Has the activity been aborted?
:returns: True if the activity has been aborted; otherwise, False.
return self.task_uuid and AbortableAsyncResult(self.task_uuid
def save(self, *args, **kwargs):
ret = super(InstanceActivity, self).save(*args, **kwargs)
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