ecluse
Safe HaskellNone
LanguageGHC2021

Ecluse.Pilot

Description

The Pilot role's front door. Every decision it acts on is planned before it starts, in Ecluse.Pilot.Plan and the boot arm that spends the plan's refusal, so what is left here is the effect each plan names.

Synopsis

Documentation

runPilot :: BootEnv -> ExportLoopPlan -> IO () Source #

The Pilot worker mode. The export loop never returns, so the server's return on shutdown cancels it.

runExportLoop :: (MonadMask m, MonadUnliftIO m, KatipContext m) => Telemetry -> Maybe AwsEndpoint -> Config -> ExportLoopPlan -> m () Source #

Run the loop the boot planned, never returning. Every fault inside a cycle is transient: a cycle has no wiring to fail on.

superviseExportCycles :: (MonadUnliftIO m, KatipContext m) => BackoffSchedule -> NonEmpty ExportTarget -> (ExportTarget -> m ()) -> m () Source #

One supervised cycle loop per ecosystem, side by side, each with its own backoff, so one failing feed holds back no other.

One-shot compilation

data PilotCompileOptions Source #

Options for the one-shot ecluse pilot compile mode.

data UploadRequest Source #

Whether a one-shot run publishes its artifact. A rebaseline exists only beside an upload.

Constructors

NoUpload 
Upload

Publish under the configured guard.

UploadRebaselined Rebaseline

Publish once over the named revision, with this run's own shrink allowance, and restart the baseline.

Instances

Instances details
Show UploadRequest Source # 
Instance details

Defined in Ecluse.Pilot.Plan

Eq UploadRequest Source # 
Instance details

Defined in Ecluse.Pilot.Plan

runPilotCompile :: LogEnv -> Telemetry -> Maybe AwsEndpoint -> Config -> PilotCompileOptions -> IO FilePath Source #

Compile once, optionally publish, and return the path. A compile failure or a publication refusal throws, so the command exits non-zero.