Skip to content

Commit

Permalink
Feat: Add Initial Delay (#1147)
Browse files Browse the repository at this point in the history
* feat: add initial delay

* feat: add max delay
  • Loading branch information
haricnugraha authored Oct 20, 2023
1 parent a8b884c commit 325fece
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/probe/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ export async function doProbe({
})

await retry(handleAll, {
backoff: new ExponentialBackoff(),
backoff: new ExponentialBackoff({
initialDelay: 30_000,
maxDelay: 300_000,
}),
}).execute(() =>
Promise.all(
probers.map(async (prober) => {
Expand Down

0 comments on commit 325fece

Please sign in to comment.