Skip to content

Commit 2467ff0

Browse files
committed
ENH: Fixed for different termination messages
1 parent bdd6e3b commit 2467ff0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

nipype/pipeline/plugins/oar.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@ def _is_pending(self, taskid):
5656
)
5757
o, e = proc.communicate()
5858
parsed_result = json.loads(o)[taskid].lower()
59-
is_pending = 'error' not in parsed_result
60-
59+
is_pending = (
60+
('error' not in parsed_result) and
61+
('terminated' not in parsed_result)
62+
)
6163
return is_pending
6264

6365
def _submit_batchtask(self, scriptfile, node):

0 commit comments

Comments
 (0)