faktory-1.0.1.3: Faktory Worker for Haskell

Safe HaskellNone
LanguageHaskell2010

Faktory.Worker

Description

High-level interface for a Worker

Runs forever, FETCH-ing Jobs from the given Queue and handing each to your processing function.

Synopsis

Documentation

data WorkerHalt Source #

If processing functions throw this, runWorker will exit

Constructors

WorkerHalt 

runWorker :: FromJSON args => Settings -> WorkerSettings -> (args -> IO ()) -> IO () Source #

runWorkerEnv :: FromJSON args => (args -> IO ()) -> IO () Source #