Merge branch '10088-raw-files' into 10081-cwl-run-same-job
[arvados.git] / sdk / cwl / arvados_cwl / arvjob.py
index e6d0cba65fa00b6c0a185861d3dde89db2c3e4e9..78bca6e0e1ea9ffc49d6b35287556e98284658f5 100644 (file)
@@ -1,6 +1,7 @@
 import logging
 import re
 import copy
+import json
 
 from cwltool.process import get_feature, shortname
 from cwltool.errors import WorkflowException
@@ -185,9 +186,11 @@ class ArvadosJob(object):
             except WorkflowException as e:
                 logger.error("Error while collecting job outputs:\n%s", e, exc_info=(e if self.arvrunner.debug else False))
                 processStatus = "permanentFail"
+                outputs = None
             except Exception as e:
                 logger.exception("Got unknown exception while collecting job outputs:")
                 processStatus = "permanentFail"
+                outputs = None
 
             self.output_callback(outputs, processStatus)
         finally: