Effect CommunityEC
Effect Communityβ€’3y agoβ€’
11 replies
Mattia Manzati

Exponential Backoff Schedule for PodUnavailable Errors

Question from a schedule noob, does this scheduel means that only for PodUnavailable errors it will retry with an exponential backoff up to 5000millis and then give up raising next podunavailable error?
const test = pipe(
  Schedule.exponential(Duration.millis(200)),
  Schedule.whileInput((error: unknown) => ShardingError.isShardingErrorPodUnavailable(error)),
  Schedule.upTo(Duration.millis(5000))
)
Was this page helpful?