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:
parent
e2b2c726b1
commit
51335c72cf
3 changed files with 13 additions and 13 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue