class Mel::PeriodicTask
- Mel::PeriodicTask
- Reference
- Object
Included Modules
Defined in:
mel/periodic_task.crConstructors
Class Method Summary
- .find(count : Int32, *, delete = false) : Array(self) | Nil
- .find(id : String, *, delete = false) : self | Nil
- .find(ids : Array, *, delete = false) : Array(self) | Nil
- .find_lt(time : Time, count = -1, *, delete = false) : Array(self) | Nil
- .find_lte(time : Time, count = -1, *, delete = false) : Array(self) | Nil
- .from_json(value) : self | Nil
Instance Method Summary
- #attempts : Int32
- #attempts=(attempts : Int32)
- #clone
- #dequeue
- #due? : Bool
- #enqueue(redis = nil, *, force = false)
- #id : String
- #id=(id : String)
- #interval : Time::Span
- #interval=(interval)
- #job : Mel::Job
- #job=(job : Mel::Job)
- #key : String
- #retries : Int32
- #retries=(retries)
- #run(*, force = false) : Fiber | Nil
- #till : Time | Nil
- #till=(till : Time | Nil)
- #time : Time
- #time=(time : Time)
- #to_json : String
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, interval : Time::Span)
#