We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3bdc740 commit ebb99a6Copy full SHA for ebb99a6
backend/src/start.ts
@@ -58,7 +58,7 @@ if (cluster.isPrimary) {
58
execArgv: process.execArgv,
59
restartDelay: (code: number) => {
60
if (code === 0) {
61
- return 24 * 60 * 60 * 1000; // 1 päivä
+ return 365 * 24 * 60 * 60 * 1000; // 1 vuosi
62
} else {
63
return 30 * 1000; // 30 sekuntia
64
}
@@ -74,6 +74,7 @@ if (cluster.isPrimary) {
74
75
76
77
+
78
function startByRole(role: string) {
79
const { exec, execArgv, restartDelay, onExit } = ROLES[role];
80
cluster.setupPrimary({
0 commit comments