Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Job arg
- type JobId = String
- perform :: (HasCallStack, ToJSON arg) => JobOptions -> Client -> arg -> IO JobId
- retry :: Int -> JobOptions
- once :: JobOptions
- queue :: Queue -> JobOptions
- jobtype :: String -> JobOptions
- at :: UTCTime -> JobOptions
- in_ :: NominalDiffTime -> JobOptions
- newJob :: arg -> IO (Job arg)
- jobJid :: Job arg -> JobId
- jobArg :: Job arg -> arg
Documentation
Instances
Generic (Job arg) Source # | |
ToJSON args => ToJSON (Job args) Source # | |
Defined in Faktory.Job | |
FromJSON args => FromJSON (Job args) Source # | |
type Rep (Job arg) Source # | |
Defined in Faktory.Job type Rep (Job arg) = D1 (MetaData "Job" "Faktory.Job" "faktory-1.0.0.0-AS2zQZ3cbZW5H0VyE84cY8" False) (C1 (MetaCons "Job" PrefixI True) ((S1 (MetaSel (Just "jobJid") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 JobId) :*: (S1 (MetaSel (Just "jobJobtype") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 String) :*: S1 (MetaSel (Just "jobArgs") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (NonEmpty arg)))) :*: (S1 (MetaSel (Just "jobRetry") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Int)) :*: (S1 (MetaSel (Just "jobQueue") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Queue)) :*: S1 (MetaSel (Just "jobAt") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe UTCTime)))))) |
in_ :: NominalDiffTime -> JobOptions Source #