Skip to content
Snippets Groups Projects
Commit c0795f6d authored by Martin Blanchard's avatar Martin Blanchard
Browse files

scheduler.py: Do not delete jobs if its lease is ongoing

parent 251d3951
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,7 @@ class Scheduler:
job.unregister_client(queue)
if not job.n_clients and job.operation.done:
if not job.n_clients and job.operation.done and not job.lease:
del self.jobs[job_name]
if self._is_instrumented:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment