forked from aragonone/court-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
62 lines (60 loc) · 1.31 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
const ONE_MINUTE = 60
const workers = [
{
name: 'heartbeat',
color: 'yellow',
path: './src/workers/heartbeat',
processes: 1,
times: 0,
repeat: ONE_MINUTE * 10,
metricsPort: process.env.SERVICE_PORT_HEARTBEAT
},
{
name: 'reveal',
color: 'pink',
path: './src/workers/reveal',
processes: 1,
times: 0,
repeat: ONE_MINUTE,
metricsPort: process.env.SERVICE_PORT_REVEAL
},
{
name: 'settlements',
color: 'cyan',
path: './src/workers/settlements',
processes: 1,
times: 0,
repeat: ONE_MINUTE * 5,
metricsPort: process.env.SERVICE_PORT_SETTLEMENTS
},
{
name: 'monitor-keeper',
color: 'green',
path: './src/workers/monitor-keeper',
processes: 1,
times: 0,
repeat: ONE_MINUTE * 30,
metricsPort: process.env.SERVICE_PORT_MONITOR_KEEPER
},
{
name: 'notification-scanner',
color: 'blue',
path: './src/workers/notification-scanner',
processes: 1,
times: 0,
repeat: ONE_MINUTE,
metricsPort: process.env.SERVICE_PORT_NOTIFICATION_SCANNER
},
{
name: 'notification-sender',
color: 'magenta',
path: './src/workers/notification-sender',
processes: 1,
times: 0,
repeat: ONE_MINUTE * 5,
metricsPort: process.env.SERVICE_PORT_NOTIFICATION_SENDER
},
]
export {
workers
}