diff --git a/.changeset/grumpy-peaches-hang.md b/.changeset/grumpy-peaches-hang.md new file mode 100644 index 0000000..cb58dbe --- /dev/null +++ b/.changeset/grumpy-peaches-hang.md @@ -0,0 +1,5 @@ +--- +"@comet/dev-process-manager": minor +--- + +Change maximum backoff time from 30s to 10s diff --git a/src/daemon-command/script.ts b/src/daemon-command/script.ts index 79fecb9..8f41934 100644 --- a/src/daemon-command/script.ts +++ b/src/daemon-command/script.ts @@ -141,7 +141,7 @@ export class Script { this.handleLogs(`[dev-pm] process crashed, restarting...`); this.restartCount++; this.status = "backoff"; - const waitTime = Math.min(Math.pow(1.3, this.restartCount), 30); + const waitTime = Math.min(Math.pow(1.3, this.restartCount), 10); this.handleLogs(`[dev-pm] waiting ${Math.round(waitTime)}s between restarts`); await new Promise((r) => setTimeout(r, waitTime * 1000)); if (this.status == "backoff") {