Commit 4ce8ae00 authored by Reto Da Forno's avatar Reto Da Forno
Browse files

minor change in cleaner

parent 5633a6ba
...@@ -189,7 +189,7 @@ def main(argv): ...@@ -189,7 +189,7 @@ def main(argv):
# Check for tests that are stuck --- # Check for tests that are stuck ---
sql = """SELECT `serv_tests_key` FROM `tbl_serv_tests` sql = """SELECT `serv_tests_key` FROM `tbl_serv_tests`
WHERE ((`test_status` IN ('preparing', 'aborting', 'syncing', 'synced')) OR (`test_status` = 'running' AND `dispatched` = 1)) WHERE ((`test_status` IN ('preparing', 'aborting', 'cleaning up', 'syncing', 'synced')) OR (`test_status` = 'running' AND `dispatched` = 1))
AND (TIMESTAMPDIFF(MINUTE, `time_end_wish`, '%s') > %d) AND (TIMESTAMPDIFF(MINUTE, `time_end_wish`, '%s') > %d)
""" """
if cur.execute(sql % (now, maxtestcleanuptime)) <= 0: if cur.execute(sql % (now, maxtestcleanuptime)) <= 0:
......
Supports Markdown
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