Skip to content

Commit

Permalink
Configure up to 10 retries on agent failure (#2447)
Browse files Browse the repository at this point in the history
Configure up to 10 retries on agnet failure

This PR configures the number of retries to 10 (as opposed to just
3, which is the default). This makes the agent more resilient
against watermark check failures, because the likelihood of hitting
only replicas that are behind gets lowered a lot and retrying takes time
too.

Addresses [this comment](#2446 (comment)).
  • Loading branch information
frederikrothenberger committed Apr 26, 2024
1 parent 391f930 commit 1417991
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/frontend/src/flows/verifiableCredentials/vcIssuer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export class VcIssuer {
const agent = new HttpAgent({
host: inferHost(),
identity,
retryTimes: 10,
});

// Only fetch the root key when we're not in prod
Expand Down
1 change: 1 addition & 0 deletions src/frontend/src/utils/iiConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ export class Connection {
const agent = new HttpAgent({
identity: delegationIdentity,
host: inferHost(),
retryTimes: 10,
});

// Only fetch the root key when we're not in prod
Expand Down

0 comments on commit 1417991

Please sign in to comment.