1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 02:09:37 +02:00

Move to bullmq

This commit is contained in:
Chocobozzz 2022-08-08 10:42:08 +02:00
parent 5e2afe4290
commit 5a921e7b74
No known key found for this signature in database
GPG key ID: 583A612D890159BE
30 changed files with 211 additions and 148 deletions

View file

@ -1,4 +1,4 @@
import { Job } from 'bull'
import { Job } from 'bullmq'
import ffmpeg, { FfmpegCommand } from 'fluent-ffmpeg'
import { execPromise } from '@server/helpers/core-utils'
import { logger, loggerTagsFactory } from '@server/helpers/logger'
@ -81,7 +81,7 @@ async function runCommand (options: {
command.on('progress', progress => {
if (!progress.percent) return
job.progress(Math.round(progress.percent))
job.updateProgress(Math.round(progress.percent))
.catch(err => logger.warn('Cannot set ffmpeg job progress.', { err, ...lTags() }))
})
}