mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 18:29:27 +02:00
Use bullmq job dependency
This commit is contained in:
parent
5a921e7b74
commit
bd911b54b5
42 changed files with 314 additions and 152 deletions
|
@ -156,7 +156,9 @@ const JOB_ATTEMPTS: { [id in JobType]: number } = {
|
|||
'video-live-ending': 1,
|
||||
'video-studio-edition': 1,
|
||||
'manage-video-torrent': 1,
|
||||
'move-to-object-storage': 3
|
||||
'move-to-object-storage': 3,
|
||||
'notify': 1,
|
||||
'federate-video': 1
|
||||
}
|
||||
// Excluded keys are jobs that can be configured by admins
|
||||
const JOB_CONCURRENCY: { [id in Exclude<JobType, 'video-transcoding' | 'video-import'>]: number } = {
|
||||
|
@ -175,7 +177,9 @@ const JOB_CONCURRENCY: { [id in Exclude<JobType, 'video-transcoding' | 'video-im
|
|||
'video-live-ending': 10,
|
||||
'video-studio-edition': 1,
|
||||
'manage-video-torrent': 1,
|
||||
'move-to-object-storage': 1
|
||||
'move-to-object-storage': 1,
|
||||
'notify': 5,
|
||||
'federate-video': 3
|
||||
}
|
||||
const JOB_TTL: { [id in JobType]: number } = {
|
||||
'activitypub-http-broadcast': 60000 * 10, // 10 minutes
|
||||
|
@ -195,6 +199,8 @@ const JOB_TTL: { [id in JobType]: number } = {
|
|||
'video-redundancy': 1000 * 3600 * 3, // 3 hours
|
||||
'video-live-ending': 1000 * 60 * 10, // 10 minutes
|
||||
'manage-video-torrent': 1000 * 3600 * 3, // 3 hours
|
||||
'notify': 60000 * 5, // 5 minutes
|
||||
'federate-video': 60000 * 5, // 5 minutes
|
||||
'move-to-object-storage': 1000 * 60 * 60 * 3 // 3 hours
|
||||
}
|
||||
const REPEAT_JOBS: { [ id in JobType ]?: RepeatOptions } = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue