mirror of
https://github.com/friendica/friendica
synced 2025-04-23 10:30:11 +00:00
Cron/Queue: Setting a limit to avoid endless PHP jobs.
This commit is contained in:
parent
d964e7e08f
commit
58cea13707
2 changed files with 6 additions and 1 deletions
|
@ -50,11 +50,14 @@ function cronhooks_run(&$argv, &$argc){
|
|||
|
||||
logger('cronhooks: start');
|
||||
|
||||
|
||||
$d = datetime_convert();
|
||||
|
||||
set_time_limit(9*60*60); // Setting the maximum execution time for cronjobs to 9 minutes.
|
||||
|
||||
call_hooks('cron', $d);
|
||||
|
||||
logger('cronhooks: end');
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue