| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Pilot
Contents
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
- runPilot :: BootEnv -> ExportLoopPlan -> IO ()
- runExportLoop :: (MonadMask m, MonadUnliftIO m, KatipContext m) => Telemetry -> Maybe AwsEndpoint -> Config -> ExportLoopPlan -> m ()
- superviseExportCycles :: (MonadUnliftIO m, KatipContext m) => BackoffSchedule -> NonEmpty ExportTarget -> (ExportTarget -> m ()) -> m ()
- data PilotCompileOptions = PilotCompileOptions {}
- data UploadRequest
- = NoUpload
- | Upload
- | UploadRebaselined Rebaseline
- runPilotCompile :: LogEnv -> Telemetry -> Maybe AwsEndpoint -> Config -> PilotCompileOptions -> IO FilePath
- data PilotUploadUnconfigured = PilotUploadUnconfigured
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.
Constructors
| PilotCompileOptions | |
Fields
| |
Instances
| Show PilotCompileOptions Source # | |
Defined in Ecluse.Pilot.Plan Methods showsPrec :: Int -> PilotCompileOptions -> ShowS # show :: PilotCompileOptions -> String # showList :: [PilotCompileOptions] -> ShowS # | |
| Eq PilotCompileOptions Source # | |
Defined in Ecluse.Pilot.Plan Methods (==) :: PilotCompileOptions -> PilotCompileOptions -> Bool # (/=) :: PilotCompileOptions -> PilotCompileOptions -> Bool # | |
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
| Show UploadRequest Source # | |
Defined in Ecluse.Pilot.Plan Methods showsPrec :: Int -> UploadRequest -> ShowS # show :: UploadRequest -> String # showList :: [UploadRequest] -> ShowS # | |
| Eq UploadRequest Source # | |
Defined in Ecluse.Pilot.Plan Methods (==) :: UploadRequest -> UploadRequest -> Bool # (/=) :: UploadRequest -> UploadRequest -> Bool # | |
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.
data PilotUploadUnconfigured Source #
An upload requested without an advisory store: a wiring fault, so it throws rather than return a value to re-raise.
Constructors
| PilotUploadUnconfigured |
Instances
| Exception PilotUploadUnconfigured Source # | |
Defined in Ecluse.Pilot.Plan | |
| Show PilotUploadUnconfigured Source # | |
Defined in Ecluse.Pilot.Plan Methods showsPrec :: Int -> PilotUploadUnconfigured -> ShowS # show :: PilotUploadUnconfigured -> String # showList :: [PilotUploadUnconfigured] -> ShowS # | |
| Eq PilotUploadUnconfigured Source # | |
Defined in Ecluse.Pilot.Plan Methods (==) :: PilotUploadUnconfigured -> PilotUploadUnconfigured -> Bool # (/=) :: PilotUploadUnconfigured -> PilotUploadUnconfigured -> Bool # | |