Skip to content

Commit

Permalink
Merge pull request #26 from timcallow/reschedule_more_info
Browse files Browse the repository at this point in the history
Add extra info for rescheduled jobs
  • Loading branch information
timcallow authored Jan 7, 2025
2 parents 8d729f1 + 28f076d commit e6edcad
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 e6edcad

Please sign in to comment.