Skip to main content

Module executor

Module executor 

Source
Expand description

Run loop configuration and exit reasons. Rotation job executor: scheduling, retry, and lifecycle management.

No socket exists, so a network blip does not close the session; only shutdown does.

Modulesยง

retry ๐Ÿ”’
Retry helpers for target-side and server-side rotation steps.
rotation ๐Ÿ”’
Core rotation execution pipeline.

Structsยง

AccessConnectorConfig
Configuration for the connector run loop, validated by Config::from_cli.
Worker ๐Ÿ”’
Authenticated connector state shared by the stages of the run loop.

Enumsยง

RunExit
Why the run loop exited.
Stop ๐Ÿ”’
Why a tick of the run loop stopped early.

Constantsยง

POLL_BACKOFF_BASE ๐Ÿ”’
Poll backoff after a transient error, doubling from the base up to the cap.
POLL_BACKOFF_CAP ๐Ÿ”’

Functionsยง

build_integrations ๐Ÿ”’
Registers the integrations the connector can drive.
refused ๐Ÿ”’
A revoked session ends the run; any other session error is transient, so keep polling.
run ๐Ÿ”’
Runs the connector poll loop. A revoked session exits as RunExit::CredentialRefused, other startup failures as RunExit::StartupFailed, and a 404 that survives a refresh probe as RunExit::NotEligible.
spawn_heartbeat ๐Ÿ”’
Polls the jobs endpoint for the connectivity bump until cancel fires.