aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-05-19 09:23:20 +0200
committerChocobozzz <me@florianbigard.com>2023-05-19 09:23:20 +0200
commitfe7019b2323768f7e33890303f95c9a45688ac1d (patch)
tree8ccd4aa71d36626d1bffb1e2a8537241e2002404 /server/controllers
parentef2e6aabf755feeec96011e70ff2522a491c5cb3 (diff)
downloadPeerTube-fe7019b2323768f7e33890303f95c9a45688ac1d.tar.gz
PeerTube-fe7019b2323768f7e33890303f95c9a45688ac1d.tar.zst
PeerTube-fe7019b2323768f7e33890303f95c9a45688ac1d.zip
Fix peertube runner concurrency
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/api/runners/jobs.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/controllers/api/runners/jobs.ts b/server/controllers/api/runners/jobs.ts
index bdeb0c6cd..140f062be 100644
--- a/server/controllers/api/runners/jobs.ts
+++ b/server/controllers/api/runners/jobs.ts
@@ -42,6 +42,7 @@ import {
42 RunnerJobType, 42 RunnerJobType,
43 RunnerJobUpdateBody, 43 RunnerJobUpdateBody,
44 RunnerJobUpdatePayload, 44 RunnerJobUpdatePayload,
45 ServerErrorCode,
45 UserRight, 46 UserRight,
46 VideoStudioTranscodingSuccess, 47 VideoStudioTranscodingSuccess,
47 VODAudioMergeTranscodingSuccess, 48 VODAudioMergeTranscodingSuccess,
@@ -168,6 +169,7 @@ async function acceptRunnerJob (req: express.Request, res: express.Response) {
168 169
169 if (runnerJob.state !== RunnerJobState.PENDING) { 170 if (runnerJob.state !== RunnerJobState.PENDING) {
170 res.fail({ 171 res.fail({
172 type: ServerErrorCode.RUNNER_JOB_NOT_IN_PENDING_STATE,
171 message: 'This job is not in pending state anymore', 173 message: 'This job is not in pending state anymore',
172 status: HttpStatusCode.CONFLICT_409 174 status: HttpStatusCode.CONFLICT_409
173 }) 175 })