]> source.dussan.org Git - nextcloud-server.git/commitdiff
LLM OCP API: Explain TaskBackgroundJob#setAllowParallelRuns
authorMarcel Klehr <mklehr@gmx.net>
Fri, 7 Jul 2023 09:45:46 +0000 (11:45 +0200)
committerMarcel Klehr <mklehr@gmx.net>
Wed, 9 Aug 2023 08:02:07 +0000 (10:02 +0200)
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit e810a8b66b6b39e13dbafba9138cec776609af65)

lib/private/LanguageModel/TaskBackgroundJob.php

index f58510a9e3f2cf1b304bc86ab000174c39843cd4..0a33f54e89e4efddaf1621b65763299126181227 100644 (file)
@@ -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);
        }