Skip to content

Commit

Permalink
Engine.progress(): treat UNKNOWN and STOPPED tasks the same.
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardomurri committed Jan 19, 2018
1 parent de61a02 commit 4871a60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gc3libs/core.py
Expand Up @@ -1549,7 +1549,7 @@ def progress(self):
elif state == Run.State.NEW:
# can happen only with TaskCollections
assert not isinstance(task, Application)
elif state == Run.State.STOPPED:
elif state in [Run.State.STOPPED, Run.State.UNKNOWN]:
# task changed state, mark as to remove
transitioned.append(index)
self._stopped.append(task)
Expand Down

0 comments on commit 4871a60

Please sign in to comment.