Skip to content

Commit ebb99a6

Browse files
restart to 1 year from startup
1 parent 3bdc740 commit ebb99a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/src/start.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ if (cluster.isPrimary) {
5858
execArgv: process.execArgv,
5959
restartDelay: (code: number) => {
6060
if (code === 0) {
61-
return 24 * 60 * 60 * 1000; // 1 päivä
61+
return 365 * 24 * 60 * 60 * 1000; // 1 vuosi
6262
} else {
6363
return 30 * 1000; // 30 sekuntia
6464
}
@@ -74,6 +74,7 @@ if (cluster.isPrimary) {
7474
}
7575
}
7676
}
77+
7778
function startByRole(role: string) {
7879
const { exec, execArgv, restartDelay, onExit } = ROLES[role];
7980
cluster.setupPrimary({

0 commit comments

Comments
 (0)