ecluse
Safe HaskellNone
LanguageGHC2021

Ecluse.Composition.Worker

Description

The composition root's worker bundle construction: the per-ecosystem WorkerPolicies the mirror worker dispatches every job through.

Only the composition root consumes the adapter registry, so the worker receives plain handles. Each bundle reuses its mount's own PackumentDeps, so ingest cannot diverge from serve.

Synopsis

Documentation

workerPoliciesFor :: Env -> [MountBinding] -> [PublishTarget] -> Int -> WorkerPolicies Source #

Build the worker's per-ecosystem bundles from the served mounts and the resolved publish targets, keyed by the ecosystem each mount's path prefix names. An absent ecosystem fails closed.

mirrorTransportFor :: Env -> PackumentDeps -> PublishTarget -> MirrorTransport Source #

The shared mirror-write transport for one mount. The presence probe reads under the mount's own pdLimits: a larger mirror packument would overrun the default and defeat duplicate suppression.