From 4871a609ce9b94c3d669168fdf223eb88310796a Mon Sep 17 00:00:00 2001 From: Riccardo Murri Date: Fri, 19 Jan 2018 14:25:04 +0100 Subject: [PATCH] `Engine.progress()`: treat `UNKNOWN` and `STOPPED` tasks the same. --- gc3libs/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gc3libs/core.py b/gc3libs/core.py index b3fca266..43aa8d96 100755 --- a/gc3libs/core.py +++ b/gc3libs/core.py @@ -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)