The cron interval is minutes - so we have to convert it into seconds

2022.09-rc
Michael 2019-02-27 08:55:25 +00:00
rodzic 0ee1ea5f29
commit 5e440aa035
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -143,7 +143,7 @@ class Worker
}
// 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);
self::spawnWorker();
return;