Respawing when quitting
This commit is contained in:
parent
528636c9f4
commit
e1cc7262de
1 changed files with 2 additions and 1 deletions
|
@ -126,7 +126,8 @@ 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'))) {
|
||||||
Logger::log('Process lifetime reached, quitting.', Logger::DEBUG);
|
Logger::log('Process lifetime reached, respawning.', Logger::DEBUG);
|
||||||
|
self::spawnWorker();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue