+const RUNNER_JOBS = {
+ MAX_FAILURES: 5
+}
+
+// ---------------------------------------------------------------------------
+
+const BROADCAST_CONCURRENCY = 30 // How many requests in parallel we do in activitypub-http-broadcast job
+const CRAWL_REQUEST_CONCURRENCY = 1 // How many requests in parallel to fetch remote data (likes, shares...)
+
+const AP_CLEANER = {
+ CONCURRENCY: 10, // How many requests in parallel we do in activitypub-cleaner job
+ UNAVAILABLE_TRESHOLD: 3, // How many attempts we do before removing an unavailable remote resource
+ PERIOD: parseDurationToMs('1 week') // /!\ Has to be sync with REPEAT_JOBS
+}
+
+const REQUEST_TIMEOUTS = {
+ DEFAULT: 7000, // 7 seconds
+ FILE: 30000, // 30 seconds
+ REDUNDANCY: JOB_TTL['video-redundancy']
+}
+