class CrystalTask::Job

Included Modules

Defined in:

crystal_task/job.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(queue : String, klass : String, args : NamedTuple, max_retries : Int64, periodic : Int64, cron : String | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def args : String #

[View source]
def created_at : Time #

Metadata


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

Metadata


[View source]
def cron : String | Nil #

Schedules


[View source]
def exception_backtrace : String | Nil #

[View source]
def exception_backtrace=(exception_backtrace : String | Nil) #

[View source]
def exception_msg : String | Nil #

Exceptions


[View source]
def exception_msg=(exception_msg : String | Nil) #

Exceptions


[View source]
def jid : String #

[View source]
def job_state : JobState #

[View source]
def job_state=(job_state : JobState) #

[View source]
def klass : String #

[View source]
def last_failed : String | Nil #

[View source]
def last_failed=(last_failed : String | Nil) #

[View source]
def max_retries : Int64 #

[View source]
def next_retry : Int64 | Nil #

[View source]
def next_retry=(next_retry : Int64 | Nil) #

[View source]
def periodic : Int64 #

[View source]
def queue : String #

[View source]
def retries : Int64 #

Retry


[View source]
def retries=(retries : Int64) #

Retry


[View source]