mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 18:29:27 +02:00
Graceful job queue shutdown
This commit is contained in:
parent
8e0fd45e14
commit
14f2b3ad11
2 changed files with 13 additions and 0 deletions
|
@ -83,6 +83,13 @@ class JobQueue {
|
|||
}
|
||||
}
|
||||
|
||||
terminate () {
|
||||
for (const queueName of Object.keys(this.queues)) {
|
||||
const queue = this.queues[queueName]
|
||||
queue.close()
|
||||
}
|
||||
}
|
||||
|
||||
createJob (obj: CreateJobArgument) {
|
||||
const queue = this.queues[obj.type]
|
||||
if (queue === undefined) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue