Skip to content

Fix multiple validation jobs #3465

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 5 commits into from
Mar 12, 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
18 changes: 14 additions & 4 deletions qiita_db/processing_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -1105,13 +1105,23 @@ def submit(self, parent_job_id=None, dependent_jobs_list=None):
# organized into n 'queues' or 'chains', and
# will all run simultaneously.
for dependent in dependent_jobs_list:
# register dependent job as queued to make qiita
# aware of this child process
dependent._set_status('queued')

dep_software = dependent.command.software
dep_job_dir = join(qdb.util.get_work_base_dir(),
dependent.id)
p = Process(target=launcher['function'],
args=(plugin_env_script,
plugin_start_script,
args=(dep_software.environment_script,
dep_software.start_script,
url,
self.id,
job_dir))
dependent.id,
dep_job_dir))
p.start()
# assign the child process ID as external id to
# the dependent
dependent.external_id = p.pid
else:
error = ("execute_in_process must be defined",
"as either true or false")
Expand Down