mirror of
https://github.com/friendica/friendica
synced 2025-04-26 16:30:12 +00:00
Bugfix: In the daemon mode we forgot to call the cron jobs
This commit is contained in:
parent
4cd730ea16
commit
1304dae0d3
2 changed files with 19 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue