Commit 445c5ec4 authored by Petr Pudlak's avatar Petr Pudlak

Check for own locks when checking job death in Luxi

Otherwise a job that is being started is falsely reported as dead.
Signed-off-by: default avatarPetr Pudlak <pudlak@google.com>
Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
parent 1c409f58
......@@ -321,7 +321,9 @@ checkForDeath state jobWS = do
sjid = show $ fromJobId jid
livelock = qjLivelock job
logDebug $ "Livelock of job " ++ sjid ++ " is " ++ show livelock
died <- maybe (return False) isDead livelock
died <- maybe (return False) isDead
. mfilter (/= jqLivelock state)
$ livelock
when died $ do
logInfo $ "Detected death of job " ++ sjid
-- if we manage to remove the job from the queue, we own the job file
......
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