Skip to content

Commit 805b358

Browse files
author
mahendrapaipuri
committed
Fix job cancellation upon keyboard interupt
1 parent 176308b commit 805b358

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

reframe/core/schedulers/oar.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,6 @@ def submit(self, job):
124124
job._submit_time = time.time()
125125

126126
def cancel(self, job):
127-
time_from_submit = time.time() - job.submit_time
128-
if time_from_submit < OAR_CANCEL_DELAY:
129-
time.sleep(OAR_CANCEL_DELAY - time_from_submit)
130-
131127
_run_strict(f'oardel {job.jobid}', timeout=self._submit_timeout)
132128
job._cancelled = True
133129

0 commit comments

Comments
 (0)