mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
LLM OCP API: Explain TaskBackgroundJob#setAllowParallelRuns
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
05fcf31987
commit
e810a8b66b
1 changed files with 2 additions and 0 deletions
|
|
@ -41,6 +41,8 @@ class TaskBackgroundJob extends QueuedJob {
|
|||
private IEventDispatcher $eventDispatcher,
|
||||
) {
|
||||
parent::__construct($timeFactory);
|
||||
// We want to avoid overloading the machine with these jobs
|
||||
// so we only allow running one job at a time
|
||||
$this->setAllowParallelRuns(false);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue