Skip to content

Commit 97ac70a

Browse files
committed
spot filler increase health check threshold
1 parent 4103d24 commit 97ac70a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bots/spotFiller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,8 @@ export class SpotFillerBot implements Bot {
996996
let healthy = false;
997997
await this.watchdogTimerMutex.runExclusive(async () => {
998998
healthy =
999-
this.watchdogTimerLastPatTime > Date.now() - 5 * this.pollingIntervalMs;
999+
this.watchdogTimerLastPatTime >
1000+
Date.now() - 10 * this.pollingIntervalMs;
10001001
if (!healthy) {
10011002
logger.warn(`${this.name} watchdog timer expired`);
10021003
}
@@ -2401,7 +2402,6 @@ export class SpotFillerBot implements Bot {
24012402
);
24022403
}
24032404
logger.debug(`trySpotFill done, took ${duration} ms`);
2404-
24052405
await this.watchdogTimerMutex.runExclusive(async () => {
24062406
this.watchdogTimerLastPatTime = Date.now();
24072407
});

0 commit comments

Comments
 (0)