summaryrefslogtreecommitdiff
path: root/Omni
diff options
context:
space:
mode:
authorBen Sima <ben@bensima.com>2025-11-26 08:58:50 -0500
committerBen Sima <ben@bensima.com>2025-11-26 08:58:50 -0500
commit047f7f5df618477669751878be3b059935fb73cf (patch)
treeffebc1055f028a0b7287476145c7161416da3dc9 /Omni
parentc119ac2fa14d99a7ac5cd4cfe809e862d4d892db (diff)
Reset stuck Review tasks to Open when no commit found
Diffstat (limited to 'Omni')
-rw-r--r--Omni/Jr.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/Omni/Jr.hs b/Omni/Jr.hs
index 8b2c354..f6f8d27 100644
--- a/Omni/Jr.hs
+++ b/Omni/Jr.hs
@@ -189,8 +189,9 @@ runLoop delaySec = do
if code /= Exit.ExitSuccess || null shaOut
then do
- putText "[review] No commit found for this task yet."
- putText "[review] Worker may still be running or commit failed. Skipping."
+ putText "[review] No commit found for this task."
+ putText "[review] Resetting to Open for retry."
+ TaskCore.updateTaskStatus tid TaskCore.Open []
else do
let commitSha = case List.lines shaOut of
(x : _) -> x