class Mel::CronTask

Included Modules

Defined in:

mel/cron_task.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module Mel::Task

find(count : Int32, *, delete = false)
find(id : String, *, delete = false) : self | Nil
find(ids : Array, *, delete = false)
find
, find_lt(time : Time, count = -1, *, delete = false) find_lt, find_lte(time : Time, count = -1, *, delete = false) find_lte, from_json(values : Array)
from_json(value) : self | Nil
from_json

Constructor Detail

def self.new(id : String, job : Mel::Job, time : Time, retries : Int32, till : Time | Nil, schedule : String) #

[View source]

Class Method Detail

def self.find(count : Int32, *, delete = false) : Array(self) | Nil #

def self.find(id : String, *, delete = false) : self | Nil #

def self.find(ids : Array, *, delete = false) : Array(self) | Nil #

def self.find_lt(time : Time, count = -1, *, delete = false) : Array(self) | Nil #

def self.find_lte(time : Time, count = -1, *, delete = false) : Array(self) | Nil #

def self.from_json(value) : self | Nil #

Instance Method Detail

def attempts : Int32 #

def attempts=(attempts : Int32) #

def clone #

[View source]
def dequeue #

def due? : Bool #

def enqueue(redis = nil, *, force = false) #

def id : String #

def id=(id : String) #

def job : Mel::Job #

def job=(job : Mel::Job) #

def key : String #

def retries : Int32 #

def retries=(retries) #

def run(*, force = false) : Fiber | Nil #

def schedule : String #

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

[View source]
def till : Time | Nil #

def till=(till : Time | Nil) #

def time : Time #

def time=(time : Time) #

def to_json : String #

[View source]