diff --git a/qiita_db/processing_job.py b/qiita_db/processing_job.py index c773ff927..0d11853dd 100644 --- a/qiita_db/processing_job.py +++ b/qiita_db/processing_job.py @@ -1049,7 +1049,13 @@ def submit(self, parent_job_id=None, dependent_jobs_list=None): # before returning immediately, usually with a job ID that can # be used to monitor the job's progress. - resource_params = self.resource_allocation_info + try: + resource_params = self.resource_allocation_info + except qdb.exceptions.QiitaDBUnknownIDError as e: + # this propagates the error to the job and using str(e) + # should be fine as we just want the last calculation + # error + self._set_error(str(e)) # note that parent_job_id is being passed transparently from # submit declaration to the launcher.