Safe Haskell | None |
---|---|
Language | Haskell98 |
- type FailureHandleFn a = Alert -> String -> String -> Maybe (Job a) -> IO (Maybe (Job a))
- type AfterExecuteHandleFn a = Job a -> IO ()
- data Unit a => Settings a = Settings {}
- data JobQueue e a where
- JobQueue :: BackendQueue q => {
- jqBackendQueue :: q
- jqActionState :: JobActionState e a
- jqFailureHandleFn :: FailureHandleFn a
- jqAfterExecuteFn :: AfterExecuteHandleFn a
- JobQueue :: BackendQueue q => {
- data ActionForJob a
- actionForJob :: Unit a => Job a -> String -> ActionForJob a
- peekJob' :: Unit a => JobQueue e a -> IO (Maybe (Job a, String, String, Int))
- executeJob' :: (Env e, Unit a) => JobQueue e a -> e -> String -> Job a -> Int -> IO (Maybe (JobResult a))
- afterExecuteJob :: Unit a => JobQueue e a -> String -> Job a -> Int -> Maybe (JobResult a) -> IO ()
- rescheduleJob :: Unit a => JobQueue e a -> Maybe UTCTime -> a -> IO ()
- updateJob :: Unit a => JobQueue e a -> String -> Job a -> Int -> IO Bool
- pack :: Unit a => Job a -> ByteString
Documentation
type AfterExecuteHandleFn a = Job a -> IO () Source
data Unit a => Settings a Source
Job queue settings
Settings | |
|
data JobQueue e a where Source
JobQueue :: BackendQueue q => q -> JobActionState e a -> FailureHandleFn a -> AfterExecuteHandleFn a -> JobQueue e a | |
|
actionForJob :: Unit a => Job a -> String -> ActionForJob a Source
executeJob' :: (Env e, Unit a) => JobQueue e a -> e -> String -> Job a -> Int -> IO (Maybe (JobResult a)) Source
afterExecuteJob :: Unit a => JobQueue e a -> String -> Job a -> Int -> Maybe (JobResult a) -> IO () Source
pack :: Unit a => Job a -> ByteString Source