class JoobQ::Configure

Overview

This struct is responsible for configuring and managing settings for the JoobQ job queue system.

Properties and Getters

Macro queue

Method #scheduler

Usage Example

To utilize the Configure struct for setting up queues, you can define them using the queue macro:

JoobQ::Configure.instance.queue "my_queue", 5, MyJob

This would create a new queue named "my_queue" with 5 workers that handle MyJob type jobs and store it in the #queues hash.

Notes

Defined in:

joobq/configure.cr

Macro Summary

Instance Method Summary

Macro Detail

macro queue(name, workers, job, throttle = nil) #

[View source]

Instance Method Detail

def dead_letter_ttl : Time::Span #

[View source]
def dead_letter_ttl=(dead_letter_ttl : Time::Span) #

[View source]
def default_queue : String #

[View source]
def default_queue=(default_queue : String) #

[View source]
def expires : Time::Span #

[View source]
def expires=(expires : Time::Span) #

[View source]
def failed_ttl : Time::Span #

[View source]
def failed_ttl=(failed_ttl : Time::Span) #

[View source]
def job_registry : JobSchemaRegistry #

[View source]
def job_registry=(job_registry : JobSchemaRegistry) #

[View source]
def queues : Hash(String, JoobQ::BaseQueue) #

[View source]
def rest_api_enabled=(rest_api_enabled : Bool) #

[View source]
def rest_api_enabled? : Bool #

[View source]
def retries : Int32 #

[View source]
def retries=(retries : Int32) #

[View source]
def scheduler(&) #

[View source]
def stats_enabled=(stats_enabled : Bool) #

[View source]
def stats_enabled? : Bool #

[View source]
def store : Store #

[View source]
def store=(store : Store) #

[View source]
def timeout : Time::Span #

[View source]
def timeout=(timeout : Time::Span) #

[View source]