Skip to main content

Module machine

Module machine 

Source
Expand description

Implementation of the persist state machine.

Structsยง

ExpireFn ๐Ÿ”’
Machine

Enumsยง

CompareAndAppendRes ๐Ÿ”’

Constantsยง

CLAIM_COMPACTION_MIN_VERSION ๐Ÿ”’
CLAIM_COMPACTION_PERCENT ๐Ÿ”’
CLAIM_UNCLAIMED_COMPACTIONS ๐Ÿ”’
INFO_MIN_ATTEMPTS
NEXT_LISTEN_BATCH_RETRYER_CLAMP ๐Ÿ”’
NEXT_LISTEN_BATCH_RETRYER_FIXED_SLEEP ๐Ÿ”’
NEXT_LISTEN_BATCH_RETRYER_INITIAL_BACKOFF ๐Ÿ”’
NEXT_LISTEN_BATCH_RETRYER_MULTIPLIER ๐Ÿ”’
WARN_MIN_ATTEMPTS
Attempts after which a still-failing retry loop escalates from INFO to WARN. retry_external always uses the persist backoff (clamped at 16s), so this is roughly five minutes of continuous failure: well past transient retries, and a sign the operation (e.g. a blob whose GET never returns) is wedged.

Functionsยง

next_listen_batch_retry_params ๐Ÿ”’
retry_determinate
retry_external