mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 10:19:35 +02:00
Add priority to transcoding jobs
(1 = highest priority) 100 for new resolutions 10 for original file optimization Add a malus for transcoding jobs depending on how many uploads the user did in the last 7 days
This commit is contained in:
parent
92c871b405
commit
77d7e851dc
15 changed files with 172 additions and 79 deletions
|
@ -4,6 +4,14 @@ import { Model } from 'sequelize-typescript'
|
|||
import { logger } from './logger'
|
||||
import { Transaction } from 'sequelize'
|
||||
|
||||
function retryTransactionWrapper <T, A, B, C, D> (
|
||||
functionToRetry: (arg1: A, arg2: B, arg3: C, arg4: D) => Promise<T> | Bluebird<T>,
|
||||
arg1: A,
|
||||
arg2: B,
|
||||
arg3: C,
|
||||
arg4: D,
|
||||
): Promise<T>
|
||||
|
||||
function retryTransactionWrapper <T, A, B, C> (
|
||||
functionToRetry: (arg1: A, arg2: B, arg3: C) => Promise<T> | Bluebird<T>,
|
||||
arg1: A,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue