class JoobQ::Queue(T)

Overview

The Queue class now focuses on queue operations

Defined in:

joobq/queue.cr

Constructors

Instance Method Summary

Instance methods inherited from class JoobQ::BaseQueue

add(job : String) add, start start, stop! stop!

Constructor Detail

def self.new(name : String, total_workers : Int32, throttle_limit : NamedTuple(limit: Int32, period: Time::Span) | Nil = nil) #

[View source]

Instance Method Detail

def add(job : String) #

[View source]
def add(job : T) #

[View source]
def clear #

[View source]
def delete_job(job : Job) #

[View source]
def info #

[View source]
def metrics : Metrics #

[View source]
def name : String #

[View source]
def next_job #

[View source]
def running? : Bool #

[View source]
def running_workers : Int32 #

[View source]
def size : Int64 #

[View source]
def start #

[View source]
def status : String #

[View source]
def stop! #

[View source]
def store : Store #

[View source]
def throttle_limit : NamedTuple(limit: Int32, period: Time::Span) | Nil #

[View source]
def total_workers : Int32 #

[View source]
def worker_manager : WorkerManager(T) #

[View source]