powerqueue-distributed-0.1.0.0: A distributed worker backend for powerqueu

Safe HaskellNone
LanguageHaskell2010

Data.PowerQueue.Worker.Distributed

Synopsis

Documentation

data WorkMasterConfig Source #

Work master configuration

Constructors

WorkMasterConfig 

Fields

launchWorkMaster :: forall j. Serialize j => WorkMasterConfig -> QueueBackend j -> IO () Source #

Launch a work master on current thread that will distribute all incoming work on a queue to connecting worker nodes launched via launchWorkNode

data WorkNodeConfig Source #

Work node configuration

Constructors

WorkNodeConfig 

Fields

launchWorkNode :: forall j. Serialize j => WorkNodeConfig -> QueueWorker j -> IO () Source #

Launch a worker node on the current thread connecting to a work master launched with launchWorkMaster

launchReconnectingWorkNode Source #

Arguments

:: Serialize j 
=> WorkNodeConfig 
-> (TimeSpan -> IO ())

callback: will retry in TimeSpan. Useful for logging

-> QueueWorker j 
-> IO ()