summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-04-22 19:51:25 +0000
committerBharat Mediratta <bharat@menalto.com>2009-04-22 19:51:25 +0000
commit47f531fc9c50cc163ba21646271203a7ace4aba8 (patch)
treeb74820cb946969e549325cd7476f51e69a9bcc7a /core
parent33775f9fb013ae2c42265f562090a95c2995b919 (diff)
Mark a task as stalled if it's > 15 seconds old (because tasks should ping back much faster than that)
Diffstat (limited to 'core')
-rw-r--r--core/controllers/admin_maintenance.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/controllers/admin_maintenance.php b/core/controllers/admin_maintenance.php
index 478009fb..9da690d2 100644
--- a/core/controllers/admin_maintenance.php
+++ b/core/controllers/admin_maintenance.php
@@ -26,7 +26,7 @@ class Admin_Maintenance_Controller extends Admin_Controller {
"UPDATE {tasks} SET `state` = 'stalled' " .
"WHERE done = 0 " .
"AND state <> 'stalled' " .
- "AND unix_timestamp(now()) - updated > 120");
+ "AND unix_timestamp(now()) - updated > 15");
$stalled_count = $query->count();
if ($stalled_count) {
log::warning("tasks",