Skip to content

Commit

Permalink
fix: adapt to API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneskoester committed Sep 8, 2023
1 parent 7fa3400 commit 844f3ee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions snakemake_executor_plugin_slurm_jobstep/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,15 @@ def run_job(self, job: ExecutorJobInterface):
# this dict is to support the to be implemented feature of oversubscription in
# "ordinary" group jobs.
jobsteps[job] = subprocess.Popen(call, shell=True)
self.report_job_submission(SubmittedJobInfo(job))

job_info = SubmittedJobInfo(job)
self.report_job_submission(job_info)

# wait until all steps are finished
error = False
for job, proc in jobsteps.items():
if proc.wait() != 0:
self.print_job_error(job)
self.print_job_error(job_info)
error = True
if error:
self.report_job_error(job)
Expand Down

0 comments on commit 844f3ee

Please sign in to comment.