-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpup.jsonc
84 lines (83 loc) · 2.5 KB
/
pup.jsonc
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{
"name": "spotweb",
"api": {
"port": 16414
},
"processes": [
// Main process
{
"id": "spotweb-main", // Required
"cmd": "deno run -A --unstable-ffi --unstable-net main.ts", // Required
"env": { "PORT": "6000" },
"autostart": true,
"cluster": {
"instances": 3,
"commonPort": 6000,
"startPort": 6030,
"strategy": "ip-hash"
}
},
// Scheduled jobs
{
"id": "daily-currency-update",
"cmd": "deno run -A --unstable-ffi --unstable-net backend/scheduler/jobs/daily.currencyupdate.ts",
"cron": "0 5 9 * * *",
"timeout": 10,
"restartDelayMs": 240000
},
{
"id": "daily-outage-update",
"cmd": "deno run -A --unstable-ffi --unsafely-ignore-certificate-errors backend/scheduler/jobs/daily.outageupdate.ts",
"cron": "0 5 8 * * *",
"restart": "error",
"restartLimit": 2,
"timeout": 3600,
"restartDelayMs": 120000
},
{
"id": "daily-price-update-12",
"cmd": "deno run -A --unstable-ffi --unsafely-ignore-certificate-errors backend/scheduler/jobs/daily.priceupdate.ts",
"cron": "0 45 12 * * *",
"restart": "error",
"restartLimit": 2,
"timeout": 900,
"restartDelayMs": 120000
},
{
"id": "daily-price-update-13",
"cmd": "deno run -A --unstable-ffi --unsafely-ignore-certificate-errors backend/scheduler/jobs/daily.priceupdate.ts",
"cron": "0 15,30,45 13 * * *",
"restart": "error",
"restartLimit": 2,
"timeout": 900,
"restartDelayMs": 120000
},
{
"id": "daily-price-update-all",
"cmd": "deno run -A --unstable-ffi --unsafely-ignore-certificate-errors backend/scheduler/jobs/daily.priceupdate.ts",
"cron": "0 0 * * * *",
"restart": "error",
"restartLimit": 2,
"timeout": 900,
"restartDelayMs": 120000
},
{
"id": "hourly-consumption-update",
"cmd": "deno run -A --unstable-ffi --unsafely-ignore-certificate-errors backend/scheduler/jobs/hourly.consumptionupdate.ts",
"cron": "0 5 * * * *",
"restart": "error",
"restartLimit": 2,
"timeout": 900,
"restartDelayMs": 120000
},
{
"id": "hourly-production-update",
"cmd": "deno run -A --unstable-ffi --unsafely-ignore-certificate-errors backend/scheduler/jobs/hourly.productionupdate.ts",
"cron": "0 50 * * * *",
"restart": "error",
"restartLimit": 2,
"timeout": 900,
"restartDelayMs": 120000
}
]
}