+// Number of points we add/remove after a successful/bad request
+const ACTOR_FOLLOW_SCORE = {
+ PENALTY: -10,
+ BONUS: 10,
+ BASE: 1000,
+ MAX: 10000
+}
+
+const FOLLOW_STATES: { [ id: string ]: FollowState } = {
+ PENDING: 'pending',
+ ACCEPTED: 'accepted'
+}
+
+const REMOTE_SCHEME = {
+ HTTP: 'https',
+ WS: 'wss'
+}
+
+const JOB_STATES: { [ id: string ]: JobState } = {
+ PENDING: 'pending',
+ PROCESSING: 'processing',
+ ERROR: 'error',
+ SUCCESS: 'success'
+}
+const JOB_CATEGORIES: { [ id: string ]: JobCategory } = {
+ TRANSCODING: 'transcoding',
+ ACTIVITYPUB_HTTP: 'activitypub-http'
+}
+// How many maximum jobs we fetch from the database per cycle
+const JOBS_FETCH_LIMIT_PER_CYCLE = {
+ transcoding: 10,
+ httpRequest: 20
+}
+// 1 minutes
+let JOBS_FETCHING_INTERVAL = 60000
+
+// 1 hour
+let SCHEDULER_INTERVAL = 60000 * 60
+
+// ---------------------------------------------------------------------------
+