abstract class Kiu::Jobs::Job

Defined in:

kiu/jobs/job.cr

Constructors

Class Method Summary

Instance Method Summary

Macro Summary

Constructor Detail

def self.new(*, max_attempts : UInt8 = 1_u8, due_at : Time = Time.utc, expire_at : Time | Nil = nil, interval : Time::Span | Nil = nil) #

[View source]

Class Method Detail

def self.decode(value) #

Returns the object itself


[View source]

Instance Method Detail

def attempts_left : UInt8 #

[View source]
def attempts_made #

[View source]
def due_at : Time #

[View source]
def due_at=(due_at : Time) #

[View source]
def due_in(span : Time::Span) #

[View source]
def due_now #

[View source]
def encode #

Returns the object itself


[View source]
def expire_at : Time | Nil #

def expire_at=(expire_at : Time | Nil) #

[View source]
def expire_at? : Time | Nil | Nil #

def expire_in(span : Time::Span) #

[View source]
def expire_now #

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

def interval=(interval : Time::Span | Nil) #

[View source]
def interval? : Time::Span | Nil | Nil #

def max_attempts : UInt8 #

[View source]
def never_expire #

[View source]
def priority : Int8 #

[View source]
def priority=(priority : Int8) #

[View source]
def reset_attempts #

[View source]
def status : Status #

[View source]
def try_once #

[View source]

Macro Detail

macro serializer(serializable, decode_f, encode_f) #

[View source]