diff options
| author | Roman Smrž <roman.smrz@seznam.cz> | 2025-11-15 18:58:37 +0100 |
|---|---|---|
| committer | Roman Smrž <roman.smrz@seznam.cz> | 2025-11-15 18:58:37 +0100 |
| commit | 90a4709f4b6cafcd6be9461046a26ad6fb641869 (patch) | |
| tree | da181bb4bc3ff7fb2716b41a252951a66fe3e7d0 | |
| parent | 16b3cb3fca46ccb5e3aee31adf936d6635777269 (diff) | |
| -rw-r--r-- | src/Job.hs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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' |