From 74d267e2970d5f47c6ef7620efdc6d1c4041dd71 Mon Sep 17 00:00:00 2001
From: Martin Mares <mj@ucw.cz>
Date: Sun, 10 Nov 2024 17:23:53 +0100
Subject: [PATCH] =?UTF-8?q?check-jobs:=20Neupozor=C5=88ovat=20na=20joby=20?=
 =?UTF-8?q?ve=20stavu=20waiting?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 bin/check-jobs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/check-jobs b/bin/check-jobs
index 44739449..fddf5cfe 100755
--- a/bin/check-jobs
+++ b/bin/check-jobs
@@ -17,7 +17,7 @@ init_standalone()
 
 sess = db.get_session()
 jobs = (sess.query(db.Job)
-        .filter(db.Job.state.not_in([db.JobState.done, db.JobState.failed, db.JobState.internal_error]))
+        .filter(db.Job.state.not_in([db.JobState.done, db.JobState.failed, db.JobState.internal_error, db.JobState.waiting]))
         .filter(db.Job.created_at < mo.now - datetime.timedelta(minutes=args.max_time))
         .all())
 
-- 
GitLab