Skip to content

Commit

Permalink
SessionBasedDaemon: use Engine.redo() to re-do tasks.
Browse files Browse the repository at this point in the history
Relying on changing the tasks' state while they are attached to the
Engine is -at the moment- a recipe for trouble.
  • Loading branch information
riccardomurri committed Jun 1, 2018
1 parent 52f4b5d commit 0f6dfde
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gc3libs/cmdline.py
Original file line number Diff line number Diff line change
Expand Up @@ -2222,8 +2222,7 @@ def redo(self, jobid=None, from_stage=None):
% (jobid, err))

try:
task.attach(self._parent._controller)
task.redo(*args)
self._parent._controller.redo(task, *args)
self._parent.session.save(task)
return ("Task `%s` successfully resubmitted" % jobid)
except Exception as err:
Expand Down

0 comments on commit 0f6dfde

Please sign in to comment.