diff options
author | Gérald Niel <gerald.niel@gegeweb.org> | 2018-04-19 07:54:51 +0200 |
---|---|---|
committer | Gérald Niel <gerald.niel@gegeweb.org> | 2018-04-19 07:54:51 +0200 |
commit | 0030284b0df2983914291d6fe83675e2aa892e6a (patch) | |
tree | 2379f6f0c8a5e6ec1cb86d4bc808c7c48a4c4422 /server/initializers/constants.ts | |
parent | ea5cd0fa2cdc7655ed5ecf134dedd52400837ef2 (diff) | |
parent | f55e5a7bf81c2c27db1514273e3366511aabf4ae (diff) | |
download | PeerTube-0030284b0df2983914291d6fe83675e2aa892e6a.tar.gz PeerTube-0030284b0df2983914291d6fe83675e2aa892e6a.tar.zst PeerTube-0030284b0df2983914291d6fe83675e2aa892e6a.zip |
Merge branch 'develop' of framagit.org:chocobozzz/PeerTube into develop
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r-- | server/initializers/constants.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 9fde989c5..5ee13389d 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -65,6 +65,7 @@ const JOB_ATTEMPTS: { [ id in JobType ]: number } = { | |||
65 | 'activitypub-http-broadcast': 5, | 65 | 'activitypub-http-broadcast': 5, |
66 | 'activitypub-http-unicast': 5, | 66 | 'activitypub-http-unicast': 5, |
67 | 'activitypub-http-fetcher': 5, | 67 | 'activitypub-http-fetcher': 5, |
68 | 'activitypub-follow': 5, | ||
68 | 'video-file': 1, | 69 | 'video-file': 1, |
69 | 'email': 5 | 70 | 'email': 5 |
70 | } | 71 | } |
@@ -72,9 +73,11 @@ const JOB_CONCURRENCY: { [ id in JobType ]: number } = { | |||
72 | 'activitypub-http-broadcast': 1, | 73 | 'activitypub-http-broadcast': 1, |
73 | 'activitypub-http-unicast': 5, | 74 | 'activitypub-http-unicast': 5, |
74 | 'activitypub-http-fetcher': 1, | 75 | 'activitypub-http-fetcher': 1, |
76 | 'activitypub-follow': 3, | ||
75 | 'video-file': 1, | 77 | 'video-file': 1, |
76 | 'email': 5 | 78 | 'email': 5 |
77 | } | 79 | } |
80 | const BROADCAST_CONCURRENCY = 5 // How many requests in parallel we do in activitypub-http-broadcast job | ||
78 | // 2 days | 81 | // 2 days |
79 | const JOB_COMPLETED_LIFETIME = 60000 * 60 * 24 * 2 | 82 | const JOB_COMPLETED_LIFETIME = 60000 * 60 * 24 * 2 |
80 | 83 | ||
@@ -461,6 +464,7 @@ export { | |||
461 | LAST_MIGRATION_VERSION, | 464 | LAST_MIGRATION_VERSION, |
462 | OAUTH_LIFETIME, | 465 | OAUTH_LIFETIME, |
463 | OPENGRAPH_AND_OEMBED_COMMENT, | 466 | OPENGRAPH_AND_OEMBED_COMMENT, |
467 | BROADCAST_CONCURRENCY, | ||
464 | PAGINATION_COUNT_DEFAULT, | 468 | PAGINATION_COUNT_DEFAULT, |
465 | ACTOR_FOLLOW_SCORE, | 469 | ACTOR_FOLLOW_SCORE, |
466 | PREVIEWS_SIZE, | 470 | PREVIEWS_SIZE, |