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.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index 09ecedfa5..1a3b52015 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -119,7 +119,7 @@ const JOB_TTL: { [ id in JobType ]: number } = {
119 'activitypub-follow': 60000 * 10, // 10 minutes 119 'activitypub-follow': 60000 * 10, // 10 minutes
120 'video-file-import': 1000 * 3600, // 1 hour 120 'video-file-import': 1000 * 3600, // 1 hour
121 'video-file': 1000 * 3600 * 48, // 2 days, transcoding could be long 121 'video-file': 1000 * 3600 * 48, // 2 days, transcoding could be long
122 'video-import': 1000 * 3600, // 1 hour 122 'video-import': 1000 * 3600 * 2, // hours
123 'email': 60000 * 10, // 10 minutes 123 'email': 60000 * 10, // 10 minutes
124 'videos-views': undefined // Unlimited 124 'videos-views': undefined // Unlimited
125} 125}
@@ -133,6 +133,7 @@ const BROADCAST_CONCURRENCY = 10 // How many requests in parallel we do in activ
133const CRAWL_REQUEST_CONCURRENCY = 1 // How many requests in parallel to fetch remote data (likes, shares...) 133const CRAWL_REQUEST_CONCURRENCY = 1 // How many requests in parallel to fetch remote data (likes, shares...)
134const JOB_REQUEST_TIMEOUT = 3000 // 3 seconds 134const JOB_REQUEST_TIMEOUT = 3000 // 3 seconds
135const JOB_COMPLETED_LIFETIME = 60000 * 60 * 24 * 2 // 2 days 135const JOB_COMPLETED_LIFETIME = 60000 * 60 * 24 * 2 // 2 days
136const VIDEO_IMPORT_TIMEOUT = 1000 * 3600 // 1 hour
136 137
137// 1 hour 138// 1 hour
138let SCHEDULER_INTERVALS_MS = { 139let SCHEDULER_INTERVALS_MS = {
@@ -700,6 +701,7 @@ export {
700 TORRENT_MIMETYPE_EXT, 701 TORRENT_MIMETYPE_EXT,
701 STATIC_MAX_AGE, 702 STATIC_MAX_AGE,
702 STATIC_PATHS, 703 STATIC_PATHS,
704 VIDEO_IMPORT_TIMEOUT,
703 ACTIVITY_PUB, 705 ACTIVITY_PUB,
704 ACTIVITY_PUB_ACTOR_TYPES, 706 ACTIVITY_PUB_ACTOR_TYPES,
705 THUMBNAILS_SIZE, 707 THUMBNAILS_SIZE,