From 70499e1b5f02667da9a703a7922fac0721524566 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Tue, 4 Sep 2012 01:28:17 -0400 Subject: [PATCH] Set a max time limit for copyvio checks of 45 seconds. --- toolserver/copyvios/checker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolserver/copyvios/checker.py b/toolserver/copyvios/checker.py index 60e2ebd..b890b01 100644 --- a/toolserver/copyvios/checker.py +++ b/toolserver/copyvios/checker.py @@ -75,7 +75,7 @@ def _format_date(cache_time): def _get_fresh_results(page, conn): t_start = time() - result = page.copyvio_check(max_queries=10) + result = page.copyvio_check(max_queries=10, max_time=45) result.cached = False result.tdiff = time() - t_start _cache_result(page, result, conn)