1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +02:00

Prevent job failure on concurrent HLS transcoding

This commit is contained in:
Chocobozzz 2022-08-09 13:21:18 +02:00
parent e2b2c726b1
commit 51335c72cf
No known key found for this signature in database
GPG key ID: 583A612D890159BE
3 changed files with 13 additions and 13 deletions

View file

@ -286,20 +286,16 @@ class JobQueue {
async pause () {
for (const handlerName of Object.keys(this.workers)) {
const worker: Worker = this.workers[handlerName]
const queue: Queue = this.queues[handlerName]
await worker.pause()
await queue.pause()
}
}
async resume () {
resume () {
for (const handlerName of Object.keys(this.workers)) {
const worker: Worker = this.workers[handlerName]
const queue: Queue = this.queues[handlerName]
worker.resume()
await queue.resume()
}
}