Skip to content

propagate error from resource_allocation_info #3466

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 10, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion qiita_db/processing_job.py
Original file line number Diff line number Diff line change
@@ -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.