summaryrefslogtreecommitdiff
path: root/src/Job.hs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2025-11-15 18:58:37 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2025-11-15 18:58:37 +0100
commit90a4709f4b6cafcd6be9461046a26ad6fb641869 (patch)
treeda181bb4bc3ff7fb2716b41a252951a66fe3e7d0 /src/Job.hs
parent16b3cb3fca46ccb5e3aee31adf936d6635777269 (diff)
Always rerun cancelled jobsHEADmaster
Diffstat (limited to 'src/Job.hs')
-rw-r--r--src/Job.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Job.hs b/src/Job.hs
index 1d4ade3..6445f5f 100644
--- a/src/Job.hs
+++ b/src/Job.hs
@@ -254,7 +254,7 @@ runJobs mngr@JobManager {..} tout jobs rerun = do
Nothing -> do
let jdir = jmDataDir </> jobStorageSubdir (jobId job)
readStatusFile tout job jdir >>= \case
- Just status | not (rerun (jobId job) status) -> do
+ Just status | status /= JobCancelled && not (rerun (jobId job) status) -> do
let status' = JobPreviousStatus status
liftIO $ atomically $ writeTVar outVar status'
return status'