class Mel::InstantTask

Included Modules

Defined in:

mel/instant_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) #

[View source]

Class Method Detail

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

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

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

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

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

[View source]
def self.from_json(value) : self | Nil #

[View source]

Instance Method Detail

def attempts : Int32 #

def attempts=(attempts : Int32) #

def clone #

[View source]
def dequeue #

[View source]
def due? : Bool #

[View source]
def enqueue(redis = nil, *, force = false) #

[View source]
def id : String #

def id=(id : String) #

def job : Mel::Job #

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

def key : String #

[View source]
def retries : Int32 #

[View source]
def retries=(retries) #

[View source]
def run(*, force = false) : Fiber | Nil #

[View source]
def time : Time #

def time=(time : Time) #

def to_json : String #

[View source]