| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Worker.Fetch
Synopsis
- data ArtifactFetchFault
- fetchArtifactBytes :: Limits -> (Limits -> Manager -> Text -> Maybe Secret -> Text -> Either UrlFormationError Request) -> RegistryUrl -> WorkerM (Either ArtifactFetchFault ByteString)
Documentation
data ArtifactFetchFault Source #
Why a mirror-artifact fetch failed, split by whether a redelivery could ever
help, so the job's ack decision (mirrorArtifact) follows
from the type rather than re-parsing a reason string.
Constructors
| ArtifactOverCap Text | The artifact exceeded the plan-sized byte cap. Deterministic in the artifact's own size, so a redelivery re-fetches the same over-cap bytes and fails identically: terminal, never worth retrying. Carries the detail. |
| ArtifactUnavailable Text | A transient fetch fault (an unformable URL, a network failure): a redelivery may succeed. Carries the detail. |
Instances
| Show ArtifactFetchFault Source # | |
Defined in Ecluse.Core.Worker.Fetch Methods showsPrec :: Int -> ArtifactFetchFault -> ShowS # show :: ArtifactFetchFault -> String # showList :: [ArtifactFetchFault] -> ShowS # | |
| Eq ArtifactFetchFault Source # | |
Defined in Ecluse.Core.Worker.Fetch Methods (==) :: ArtifactFetchFault -> ArtifactFetchFault -> Bool # (/=) :: ArtifactFetchFault -> ArtifactFetchFault -> Bool # | |
fetchArtifactBytes :: Limits -> (Limits -> Manager -> Text -> Maybe Secret -> Text -> Either UrlFormationError Request) -> RegistryUrl -> WorkerM (Either ArtifactFetchFault ByteString) Source #