aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers')
-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 54cd57619..ff0ade17a 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -100,36 +100,40 @@ const REMOTE_SCHEME = {
100 WS: 'wss' 100 WS: 'wss'
101} 101}
102 102
103const JOB_ATTEMPTS: { [ id in JobType ]: number } = { 103// TODO: remove 'video-file'
104const JOB_ATTEMPTS: { [ id in (JobType | 'video-file') ]: number } = {
104 'activitypub-http-broadcast': 5, 105 'activitypub-http-broadcast': 5,
105 'activitypub-http-unicast': 5, 106 'activitypub-http-unicast': 5,
106 'activitypub-http-fetcher': 5, 107 'activitypub-http-fetcher': 5,
107 'activitypub-follow': 5, 108 'activitypub-follow': 5,
108 'video-file-import': 1, 109 'video-file-import': 1,
110 'video-transcoding': 1,
109 'video-file': 1, 111 'video-file': 1,
110 'video-import': 1, 112 'video-import': 1,
111 'email': 5, 113 'email': 5,
112 'videos-views': 1, 114 'videos-views': 1,
113 'activitypub-refresher': 1 115 'activitypub-refresher': 1
114} 116}
115const JOB_CONCURRENCY: { [ id in JobType ]: number } = { 117const JOB_CONCURRENCY: { [ id in (JobType | 'video-file') ]: number } = {
116 'activitypub-http-broadcast': 1, 118 'activitypub-http-broadcast': 1,
117 'activitypub-http-unicast': 5, 119 'activitypub-http-unicast': 5,
118 'activitypub-http-fetcher': 1, 120 'activitypub-http-fetcher': 1,
119 'activitypub-follow': 3, 121 'activitypub-follow': 3,
120 'video-file-import': 1, 122 'video-file-import': 1,
123 'video-transcoding': 1,
121 'video-file': 1, 124 'video-file': 1,
122 'video-import': 1, 125 'video-import': 1,
123 'email': 5, 126 'email': 5,
124 'videos-views': 1, 127 'videos-views': 1,
125 'activitypub-refresher': 1 128 'activitypub-refresher': 1
126} 129}
127const JOB_TTL: { [ id in JobType ]: number } = { 130const JOB_TTL: { [ id in (JobType | 'video-file') ]: number } = {
128 'activitypub-http-broadcast': 60000 * 10, // 10 minutes 131 'activitypub-http-broadcast': 60000 * 10, // 10 minutes
129 'activitypub-http-unicast': 60000 * 10, // 10 minutes 132 'activitypub-http-unicast': 60000 * 10, // 10 minutes
130 'activitypub-http-fetcher': 60000 * 10, // 10 minutes 133 'activitypub-http-fetcher': 60000 * 10, // 10 minutes
131 'activitypub-follow': 60000 * 10, // 10 minutes 134 'activitypub-follow': 60000 * 10, // 10 minutes
132 'video-file-import': 1000 * 3600, // 1 hour 135 'video-file-import': 1000 * 3600, // 1 hour
136 'video-transcoding': 1000 * 3600 * 48, // 2 days, transcoding could be long
133 'video-file': 1000 * 3600 * 48, // 2 days, transcoding could be long 137 'video-file': 1000 * 3600 * 48, // 2 days, transcoding could be long
134 'video-import': 1000 * 3600 * 2, // hours 138 'video-import': 1000 * 3600 * 2, // hours
135 'email': 60000 * 10, // 10 minutes 139 'email': 60000 * 10, // 10 minutes