Safe Haskell | None |
---|---|
Language | Haskell2010 |
Support for the TRACK
command (Enterprise only)
Synopsis
- newtype CustomTrack = CustomTrack {}
- tracked :: JobOptions
- trackPerform :: (HasCallStack, ToJSON arg) => JobOptions -> Producer -> arg -> IO JobId
- data JobDetails = JobDetails {}
- data JobState
- trackGet :: Producer -> JobId -> IO (Either String (Maybe JobDetails))
- trackGetHush :: Producer -> JobId -> IO JobDetails
- data SetJobDetails = SetJobDetails {}
- trackSet :: HasCallStack => Producer -> SetJobDetails -> IO ()
Documentation
newtype CustomTrack Source #
Instances
Generic CustomTrack Source # | |
Defined in Faktory.Ent.Tracking type Rep CustomTrack :: Type -> Type # from :: CustomTrack -> Rep CustomTrack x # to :: Rep CustomTrack x -> CustomTrack # | |
ToJSON CustomTrack Source # | |
Defined in Faktory.Ent.Tracking toJSON :: CustomTrack -> Value # toEncoding :: CustomTrack -> Encoding # toJSONList :: [CustomTrack] -> Value # toEncodingList :: [CustomTrack] -> Encoding # | |
type Rep CustomTrack Source # | |
Defined in Faktory.Ent.Tracking type Rep CustomTrack = D1 ('MetaData "CustomTrack" "Faktory.Ent.Tracking" "faktory-1.1.2.3-B57t8FT30W1366lrMRTe3J" 'True) (C1 ('MetaCons "CustomTrack" 'PrefixI 'True) (S1 ('MetaSel ('Just "track") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) |
tracked :: JobOptions Source #
trackPerform :: (HasCallStack, ToJSON arg) => JobOptions -> Producer -> arg -> IO JobId Source #
Deprecated: Use ‘perform (options <> tracked)’ instead
perform
, but adding { custom: { track: 1 } }
Equivalent to:
perform
(custom
$CustomTrack
1)
data JobDetails Source #
Instances
Instances
Bounded JobState Source # | |
Enum JobState Source # | |
Eq JobState Source # | |
Show JobState Source # | |
ToJSON JobState Source # | |
Defined in Faktory.JobState | |
FromJSON JobState Source # | |
trackGetHush :: Producer -> JobId -> IO JobDetails Source #
trackGet
but mask any failures to JobStateUnknown
data SetJobDetails Source #
Instances
trackSet :: HasCallStack => Producer -> SetJobDetails -> IO () Source #