abstract class Kiu::Jobs::Job
- Kiu::Jobs::Job
- Reference
- Object
Defined in:
kiu/jobs/job.crConstructors
Class Method Summary
-
.decode(value)
Returns the object itself
Instance Method Summary
- #attempts_left : UInt8
- #attempts_made
- #due_at : Time
- #due_at=(due_at : Time)
- #due_in(span : Time::Span)
- #due_now
-
#encode
Returns the object itself
- #expire_at : Time | Nil
- #expire_at=(expire_at : Time | Nil)
- #expire_at? : Time | Nil | Nil
- #expire_in(span : Time::Span)
- #expire_now
- #interval : Time::Span | Nil
- #interval=(interval : Time::Span | Nil)
- #interval? : Time::Span | Nil | Nil
- #max_attempts : UInt8
- #never_expire
- #priority : Int8
- #priority=(priority : Int8)
- #reset_attempts
- #status : Status
- #try_once
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)
#