The cron interval is minutes - so we have to convert it into seconds
This commit is contained in:
parent
0ee1ea5f29
commit
5e440aa035
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ class Worker
|
||||||
}
|
}
|
||||||
|
|
||||||
// Quit the worker once every cron interval
|
// Quit the worker once every cron interval
|
||||||
if (time() > ($starttime + Config::get('system', 'cron_interval'))) {
|
if (time() > ($starttime + (Config::get('system', 'cron_interval') * 60))) {
|
||||||
Logger::log('Process lifetime reached, respawning.', Logger::DEBUG);
|
Logger::log('Process lifetime reached, respawning.', Logger::DEBUG);
|
||||||
self::spawnWorker();
|
self::spawnWorker();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue