Prevent duplicate completion logs

- Only complete and log cancelled jobs that are still active
- Prevents duplicate completion messages for jobs already handled
- Cleaner logging for job cancellation
parent 75fcfabe
......@@ -1409,6 +1409,7 @@ class ClusterMaster:
cancelled_jobs.append(job_id)
for job_id in cancelled_jobs:
if job_id in self.active_jobs:
self.complete_job(job_id)
print(f"Completed cancelled job {job_id}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment