class Conveyor::Scheduler

Defined in:

scheduler.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(redis : Redis::Client, interval : Time::Span = 1.second) #

[View source]

Instance Method Detail

def check_primary #

[View source]
def daily(job : Job, *, at time_of_day : String, in location : Time::Location = @location) : Nil #

[View source]
def daily(*, at time_of_day : String, in location : Time::Location = @location, &block : -> Job) : Nil #

[View source]
def every(interval : Time::Span, job : Job, start_in : Time::Span = (rand(interval.total_seconds)).seconds) : Nil #

[View source]
def every(interval : Time::Span, start_in : Time::Span = (rand(interval.total_seconds)).seconds, &block : -> Job) #

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

[View source]

[View source]
def running? : Bool #

[View source]
def start : Nil #

[View source]
def stop #

[View source]
def tick(enqueue : Bool) #

[View source]
def time_zone(location : Time::Location) #

[View source]
def weekly(job : Job, *, on weekdays : Array(Time::DayOfWeek), at time_of_day : String, in location : Time::Location = @location) : Nil #

[View source]
def weekly(*, on weekdays : Array(Time::DayOfWeek), at time_of_day : String, in location : Time::Location = @location, &block : -> Job) : Nil #

[View source]