defaultBackoffFor function

Backoff defaultBackoffFor(
  1. StepFailureClass failureClass,
  2. Backoff circuit
)

The backoff a failureClass gets when the capability declares none — the circuit's, except for infra, which keeps the wall-clock throttle schedule.

Implementation

Backoff defaultBackoffFor(StepFailureClass failureClass, Backoff circuit) =>
    failureClass == StepFailureClass.infra ? Backoff.harnessThrottle : circuit;