Skip to content

Commit 20f9ebc

Browse files
committed
propagate error from resource_allocation_info
1 parent d0e03de commit 20f9ebc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

qiita_db/processing_job.py

+8
Original file line numberDiff line numberDiff line change
@@ -1050,6 +1050,14 @@ def submit(self, parent_job_id=None, dependent_jobs_list=None):
10501050
# be used to monitor the job's progress.
10511051

10521052
resource_params = self.resource_allocation_info
1053+
try:
1054+
resource_params = self.resource_allocation_info
1055+
except qdb.exceptions.QiitaDBUnknownIDError as e:
1056+
# this propagates the error to the job and using str(e)
1057+
# should be fine as we just want the last calculation
1058+
# error
1059+
self._set_error(str(e))
1060+
10531061

10541062
# note that parent_job_id is being passed transparently from
10551063
# submit declaration to the launcher.

0 commit comments

Comments
 (0)