Skip to content
Snippets Groups Projects
Commit 74d267e2 authored by Martin Mareš's avatar Martin Mareš
Browse files

check-jobs: Neupozorňovat na joby ve stavu waiting

parent 63001667
Branches
No related tags found
No related merge requests found
...@@ -17,7 +17,7 @@ init_standalone() ...@@ -17,7 +17,7 @@ init_standalone()
sess = db.get_session() sess = db.get_session()
jobs = (sess.query(db.Job) 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)) .filter(db.Job.created_at < mo.now - datetime.timedelta(minutes=args.max_time))
.all()) .all())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment