Bugfix: In the daemon mode we forgot to call the cron jobs

This commit is contained in:
Michael 2018-06-06 03:48:04 +00:00
parent 4cd730ea16
commit 1304dae0d3
2 changed files with 19 additions and 5 deletions

View file

@ -1015,9 +1015,14 @@ class Worker
* @brief Spawns a new worker
* @return void
*/
public static function spawnWorker()
public static function spawnWorker($do_cron = false)
{
$args = ["bin/worker.php", "no_cron"];
$args = ["bin/worker.php"];
if (!$do_cron) {
$args[] = "no_cron";
}
get_app()->proc_run($args);
}