aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r--server/initializers/constants.ts10
1 files changed, 7 insertions, 3 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index 606eeba2d..82d04a94e 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -139,7 +139,8 @@ const JOB_ATTEMPTS: { [id in JobType]: number } = {
139 'email': 5, 139 'email': 5,
140 'videos-views': 1, 140 'videos-views': 1,
141 'activitypub-refresher': 1, 141 'activitypub-refresher': 1,
142 'video-redundancy': 1 142 'video-redundancy': 1,
143 'video-live-ending': 1
143} 144}
144const JOB_CONCURRENCY: { [id in JobType]: number } = { 145const JOB_CONCURRENCY: { [id in JobType]: number } = {
145 'activitypub-http-broadcast': 1, 146 'activitypub-http-broadcast': 1,
@@ -152,7 +153,8 @@ const JOB_CONCURRENCY: { [id in JobType]: number } = {
152 'email': 5, 153 'email': 5,
153 'videos-views': 1, 154 'videos-views': 1,
154 'activitypub-refresher': 1, 155 'activitypub-refresher': 1,
155 'video-redundancy': 1 156 'video-redundancy': 1,
157 'video-live-ending': 1
156} 158}
157const JOB_TTL: { [id in JobType]: number } = { 159const JOB_TTL: { [id in JobType]: number } = {
158 'activitypub-http-broadcast': 60000 * 10, // 10 minutes 160 'activitypub-http-broadcast': 60000 * 10, // 10 minutes
@@ -165,7 +167,8 @@ const JOB_TTL: { [id in JobType]: number } = {
165 'email': 60000 * 10, // 10 minutes 167 'email': 60000 * 10, // 10 minutes
166 'videos-views': undefined, // Unlimited 168 'videos-views': undefined, // Unlimited
167 'activitypub-refresher': 60000 * 10, // 10 minutes 169 'activitypub-refresher': 60000 * 10, // 10 minutes
168 'video-redundancy': 1000 * 3600 * 3 // 3 hours 170 'video-redundancy': 1000 * 3600 * 3, // 3 hours
171 'video-live-ending': 1000 * 60 * 10 // 10 minutes
169} 172}
170const REPEAT_JOBS: { [ id: string ]: EveryRepeatOptions | CronRepeatOptions } = { 173const REPEAT_JOBS: { [ id: string ]: EveryRepeatOptions | CronRepeatOptions } = {
171 'videos-views': { 174 'videos-views': {
@@ -605,6 +608,7 @@ const HLS_REDUNDANCY_DIRECTORY = join(CONFIG.STORAGE.REDUNDANCY_DIR, 'hls')
605 608
606const VIDEO_LIVE = { 609const VIDEO_LIVE = {
607 EXTENSION: '.ts', 610 EXTENSION: '.ts',
611 CLEANUP_DELAY: 1000 * 60 * 5, // 5 mintues
608 RTMP: { 612 RTMP: {
609 CHUNK_SIZE: 60000, 613 CHUNK_SIZE: 60000,
610 GOP_CACHE: true, 614 GOP_CACHE: true,