| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Arbiter.Core.Sql.Claim
Description
Internal to the arbiter packages. Not covered by the PVP.
Claim-time SQL: candidate selection, admission gates, and the batched claim.
Synopsis
- data ClaimAdmission = ClaimAdmission {}
- claimJobsBatchedSQL :: SchemaName -> TableName -> ClaimAdmission -> Int -> Int -> NominalDiffTime -> UUID -> Query ()
- concHeadroomPred :: Text -> Text -> Text -> Text
- groupHeadBatch :: Text -> Text -> [Text] -> Text -> Text
Documentation
data ClaimAdmissionSource #
Which admission filters the claim SQL renders. A payload type that declares no policy of a kind gets no filter for it.
Constructors
| ClaimAdmission | |
Fields
| |
Instances
| Eq ClaimAdmission Source # | |
Defined in Arbiter.Core.Sql.Claim Methods (==) :: ClaimAdmission -> ClaimAdmission -> Bool# (/=) :: ClaimAdmission -> ClaimAdmission -> Bool# | |
| Show ClaimAdmission Source # | |
Defined in Arbiter.Core.Sql.Claim Methods showsPrec :: Int -> ClaimAdmission -> ShowS# show :: ClaimAdmission -> String# showList :: [ClaimAdmission] -> ShowS# | |
claimJobsBatchedSQL :: SchemaName -> TableName -> ClaimAdmission -> Int -> Int -> NominalDiffTime -> UUID -> Query ()Source #
The single-CTE batched claim, which at batch size 1 is the single-job claim. Takes
any unsuspended, uncancelled, visible job within its attempt budget, rollup children
and woken rollup parents included. Each gate's CTEs render from the ClaimAdmission flags.
The caller attaches the row decoder.