class JoobQ::WorkerManager(T)

Overview

WorkerManager handles all worker-related operations

Defined in:

joobq/worker_manager.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(total_workers : Int32, queue : Queue(T), metrics : Metrics) #

[View source]

Instance Method Detail

def restart(worker, ex : Exception) #

[View source]
def running? : Bool #

[View source]
def running_workers : Int32 #

[View source]
def start_workers #

[View source]
def stop_workers #

[View source]
def terminate(worker) #

[View source]
def terminate_channel : Channel(Nil) #

[View source]
def total_workers : Int32 #

[View source]
def workers : Array(Worker(T)) #

[View source]
def workers_mutex #

[View source]