From f012319a644fe8d9d33f2f567fa828442a3b39fd Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 16 Mar 2022 15:34:21 +0100 Subject: Process video torrents in order Prevent update before video torrent generation for example --- shared/models/server/job.model.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'shared/models/server') diff --git a/shared/models/server/job.model.ts b/shared/models/server/job.model.ts index d0293f542..6b07eba69 100644 --- a/shared/models/server/job.model.ts +++ b/shared/models/server/job.model.ts @@ -20,6 +20,7 @@ export type JobType = | 'video-redundancy' | 'video-live-ending' | 'actor-keys' + | 'manage-video-torrent' | 'move-to-object-storage' | 'video-edition' @@ -96,6 +97,20 @@ export type VideoRedundancyPayload = { videoId: number } +export type ManageVideoTorrentPayload = + { + action: 'create' + videoId: number + videoFileId: number + } | { + action: 'update-metadata' + + videoId?: number + streamingPlaylistId?: number + + videoFileId: number + } + // Video transcoding payloads interface BaseTranscodingPayload { -- cgit v1.2.3