Skip to content

Commit 634498f

Browse files
NdpntMattiSG
andauthored
Improve restart delays
Co-authored-by: Matti Schneider <[email protected]>
1 parent 407b470 commit 634498f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/pm2.config.cjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
args: 'run start:schedule',
77
max_restarts: 2,
88
min_uptime: '1h', // Set a relatively high duration (more than the longest run) so that restarts that occur before this duration has elapsed are considered unstable.
9-
restart_delay: 180 * 60 * 1000,
9+
restart_delay: 3 * 60 * 60 * 1000, // likely related to a connectivity problem that will take some time to be fixed
1010
},
1111
{
1212
name: 'ota-api',
@@ -23,7 +23,7 @@ module.exports = {
2323
args: 'run dataset:schedule',
2424
min_uptime: '10s',
2525
max_restarts: 10,
26-
restart_delay: 1000,
26+
restart_delay: 60 * 60 * 1000, // likely related to a GitHub availability problem that will take some time to be fixed
2727
exponential_backoff_restart_delay: true
2828
},
2929
{

0 commit comments

Comments
 (0)