Skip to content

Commit

Permalink
fix(tee-prover): increase retries to reduce spurious alerts (#2776)
Browse files Browse the repository at this point in the history
## What ❔

Increase retries.

## Why ❔

An alert fires when we hit maximum number of retries. Retries happen,
for example, when a component restarts. Those restarts are transient and
harmless. By increasing the number of retries, we reduce the number of
false/spurious alerts.

## Checklist
  • Loading branch information
thomasknauth authored Sep 2, 2024
1 parent ec3f084 commit 4fdc806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/dal/src/tee_verifier_input_producer_dal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub struct TeeVerifierInputProducerDal<'a, 'c> {
}

/// The amount of attempts to process a job before giving up.
pub const JOB_MAX_ATTEMPT: i16 = 2;
pub const JOB_MAX_ATTEMPT: i16 = 5;

/// Time to wait for job to be processed
const JOB_PROCESSING_TIMEOUT: PgInterval = pg_interval_from_duration(Duration::from_secs(10 * 60));
Expand Down

0 comments on commit 4fdc806

Please sign in to comment.