Cron/Queue: Setting a limit to avoid endless PHP jobs.

This commit is contained in:
Michael Vogel 2014-05-21 07:28:33 +02:00
parent d964e7e08f
commit 58cea13707
2 changed files with 6 additions and 1 deletions

View file

@ -106,6 +106,8 @@ function queue_run(&$argv, &$argc){
logger('queue: start');
set_time_limit(9*60*60); // Setting the maximum execution time for queue job to 9 minutes.
handle_pubsubhubbub();
$interval = ((get_config('system','delivery_interval') === false) ? 2 : intval(get_config('system','delivery_interval')));