Skip to content

Commit

Permalink
ignore return value of Task.cancel().
Browse files Browse the repository at this point in the history
  • Loading branch information
knipknap committed Aug 23, 2012
1 parent ba93fb0 commit 5273cd3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion SpiffWorkflow/Task.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ def cancel(self):
return
self._set_state(self.CANCELLED)
self._drop_children()
return self.task_spec._on_cancel(self)
self.task_spec._on_cancel(self)

def complete(self):
"""
Expand Down
9 changes: 0 additions & 9 deletions SpiffWorkflow/specs/TaskSpec.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,6 @@ def _on_ready_before_hook(self, my_task):
@type my_task: Task
@param my_task: The associated task in the task tree.
@rtype: boolean
@return: True on success, False otherwise.
"""
pass

Expand All @@ -351,8 +349,6 @@ def _on_ready_hook(self, my_task):
@type my_task: Task
@param my_task: The associated task in the task tree.
@rtype: boolean
@return: True on success, False otherwise.
"""
pass

Expand All @@ -361,15 +357,10 @@ def _on_cancel(self, my_task):
May be called by another task to cancel the operation before it was
completed.
Return True on success, False otherwise.
@type my_task: Task
@param my_task: The associated task in the task tree.
@rtype: boolean
@return: True on success, False otherwise.
"""
self.cancelled_event.emit(my_task.workflow, my_task)
return True

def _on_trigger(self, my_task):
"""
Expand Down

0 comments on commit 5273cd3

Please sign in to comment.