X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fjob%2FJobQueueGroup.php;h=e483e057975339424303fef4587e433d8aa8261c;hb=a71728c990496101c740a33efa0b238d9fc2417d;hp=85f99b71676f66dfc5eefb6cef8b02d1b96d14c5;hpb=0bb11a1b5833ca381d999fe3411281f10dca088c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/job/JobQueueGroup.php b/includes/job/JobQueueGroup.php index 85f99b7167..e483e05797 100644 --- a/includes/job/JobQueueGroup.php +++ b/includes/job/JobQueueGroup.php @@ -310,9 +310,13 @@ class JobQueueGroup { } elseif ( !isset( $lastRuns[$type][$task] ) || $lastRuns[$type][$task] < ( time() - $definition['period'] ) ) { - if ( call_user_func( $definition['callback'] ) !== null ) { - $tasksRun[$type][$task] = time(); - ++$count; + try { + if ( call_user_func( $definition['callback'] ) !== null ) { + $tasksRun[$type][$task] = time(); + ++$count; + } + } catch ( JobQueueError $e ) { + wfDebugLog( 'exception', $e->getLogMessage() ); } } }