class CrystalTask::Job
- CrystalTask::Job
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
crystal_task/job.crConstructors
- .new(queue : String, klass : String, args : NamedTuple, max_retries : Int64, periodic : Int64, cron : String | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
- #args : String
-
#created_at : Time
Metadata
-
#created_at=(created_at : Time)
Metadata
-
#cron : String | Nil
Schedules
- #exception_backtrace : String | Nil
- #exception_backtrace=(exception_backtrace : String | Nil)
-
#exception_msg : String | Nil
Exceptions
-
#exception_msg=(exception_msg : String | Nil)
Exceptions
- #jid : String
- #job_state : JobState
- #job_state=(job_state : JobState)
- #klass : String
- #last_failed : String | Nil
- #last_failed=(last_failed : String | Nil)
- #max_retries : Int64
- #next_retry : Int64 | Nil
- #next_retry=(next_retry : Int64 | Nil)
- #periodic : Int64
- #queue : String
-
#retries : Int64
Retry
-
#retries=(retries : Int64)
Retry
Constructor Detail
def self.new(queue : String, klass : String, args : NamedTuple, max_retries : Int64, periodic : Int64, cron : String | Nil = nil)
#