Skip to content
Snippets Groups Projects
Commit e20d6b62 authored by Nathaniel Kofalt's avatar Nathaniel Kofalt
Browse files

Correct abandoned jobs query

parent 9f06a7bc
No related branches found
No related tags found
No related merge requests found
......@@ -171,7 +171,7 @@ else:
j = application.db.jobs.find_one_and_update(
{
'state': 'running',
'heartbeat': {'$lt': datetime.datetime.utcnow() - datetime.timedelta(seconds=100)},
'modified': {'$lt': datetime.datetime.utcnow() - datetime.timedelta(seconds=100)},
},
{
'$set': {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment