aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/server/job.model.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-03-16 15:34:21 +0100
committerChocobozzz <me@florianbigard.com>2022-03-16 15:45:58 +0100
commitf012319a644fe8d9d33f2f567fa828442a3b39fd (patch)
tree8fc7aeff10749ed8088e3f89745433b59bb62c20 /shared/models/server/job.model.ts
parent83664918901564830f3b7d1bd9879411a1b857a8 (diff)
downloadPeerTube-f012319a644fe8d9d33f2f567fa828442a3b39fd.tar.gz
PeerTube-f012319a644fe8d9d33f2f567fa828442a3b39fd.tar.zst
PeerTube-f012319a644fe8d9d33f2f567fa828442a3b39fd.zip
Process video torrents in order
Prevent update before video torrent generation for example
Diffstat (limited to 'shared/models/server/job.model.ts')
-rw-r--r--shared/models/server/job.model.ts15
1 files changed, 15 insertions, 0 deletions
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 =
20 | 'video-redundancy' 20 | 'video-redundancy'
21 | 'video-live-ending' 21 | 'video-live-ending'
22 | 'actor-keys' 22 | 'actor-keys'
23 | 'manage-video-torrent'
23 | 'move-to-object-storage' 24 | 'move-to-object-storage'
24 | 'video-edition' 25 | 'video-edition'
25 26
@@ -96,6 +97,20 @@ export type VideoRedundancyPayload = {
96 videoId: number 97 videoId: number
97} 98}
98 99
100export type ManageVideoTorrentPayload =
101 {
102 action: 'create'
103 videoId: number
104 videoFileId: number
105 } | {
106 action: 'update-metadata'
107
108 videoId?: number
109 streamingPlaylistId?: number
110
111 videoFileId: number
112 }
113
99// Video transcoding payloads 114// Video transcoding payloads
100 115
101interface BaseTranscodingPayload { 116interface BaseTranscodingPayload {