From 28f076d8fb30d8eed07bf9c362e565c0929b6ede Mon Sep 17 00:00:00 2001 From: Tim Callow Date: Tue, 7 Jan 2025 09:32:23 +0100 Subject: [PATCH] Add extra info for rescheduled jobs --- datalad_slurm/schedule.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/datalad_slurm/schedule.py b/datalad_slurm/schedule.py index 38f22d8..aed4445 100644 --- a/datalad_slurm/schedule.py +++ b/datalad_slurm/schedule.py @@ -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,