jobqueue-0.0.15: A job queue library

Safe HaskellNone
LanguageHaskell98

Network.JobQueue.JobQueue.Internal

Synopsis

Documentation

type FailureHandleFn a = Alert -> String -> String -> Maybe (Job a) -> IO (Maybe (Job a)) Source

data Unit a => Settings a Source

Job queue settings

Constructors

Settings 

Fields

failureHandleFn :: FailureHandleFn a

a function called when an action fails

afterExecuteFn :: AfterExecuteHandleFn a

a function called after an action is executed (for debugging)

Instances

Unit a => Default (Settings a) 

data ActionForJob a Source

Constructors

Unit a => Execute (Job a) 
Delete 
Skip 

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

rescheduleJob :: Unit a => JobQueue e a -> Maybe UTCTime -> a -> IO () Source

updateJob :: Unit a => JobQueue e a -> String -> Job a -> Int -> IO Bool Source