Skip to content

Commit

Permalink
Add extra info for rescheduled jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
timcallow committed Jan 7, 2025
1 parent 0b8f43b commit 28f076d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions datalad_slurm/schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,11 @@ def run_command(
else:
message = f"Submitted batch job {slurm_job_id}: Pending"

# add extra info for re-scheduled jobs
if rerun_info:
slurm_id_old = rerun_info["slurm_job_id"]
message += f"\n\nRe-submission of job {slurm_id_old}."

msg = msg.format(
message if message is not None else cmd_shorty,
'"{}"'.format(record) if record_path else record,
Expand Down

0 comments on commit 28f076d

Please sign in to comment.