mirror of
https://github.com/friendica/friendica
synced 2025-04-25 07:50:10 +00:00
Don't fork worker on frontend by default
This commit is contained in:
parent
5320568848
commit
35a487ae30
2 changed files with 3 additions and 2 deletions
|
@ -1125,7 +1125,8 @@ class Worker
|
|||
}
|
||||
|
||||
$priority = PRIORITY_MEDIUM;
|
||||
$dont_fork = Config::get("system", "worker_dont_fork", false);
|
||||
// Don't fork from frontend tasks by default
|
||||
$dont_fork = Config::get("system", "worker_dont_fork", false) || !\get_app()->isBackend();
|
||||
$created = DateTimeFormat::utcNow();
|
||||
$force_priority = false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue