class Sidekiq::Job

Overview

The Job class handles the internal business of converting to/from JSON. In a statically-typed language, this is a bit of a chore.

Included Modules

Defined in:

sidekiq/job.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new #

[View source]

Class Method Detail

def self.register(name, klass) #

[View source]
def self.valid? #

[View source]

Instance Method Detail

def _perform(args : String) #

[View source]
def _perform_at(time : Time, args : String) #

Run this job at or after the given instant in Time


[View source]
def _perform_bulk(args : Array(String)) #

[View source]
def _perform_in(interval : Time::Span, args : String) #

Run this job +interval+ from now.


[View source]
def args : String #

[View source]
def args=(args : String) #

[View source]
def at : Time | Nil #

[View source]
def at=(at : Time | Nil) #

[View source]
def backtrace : Bool | Int32 | Nil #

[View source]
def backtrace=(backtrace : Bool | Int32 | Nil) #

[View source]
def bid : String | Nil #

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

[View source]
def client #

[View source]
def client=(cl : Sidekiq::Client) #

[View source]
def created_at : Time #

[View source]
def dead=(dead : Bool) #

[View source]
def dead? : Bool #

[View source]
def enqueued_at : Time | Nil #

[View source]
def enqueued_at=(enqueued_at : Time | Nil) #

[View source]
def error_backtrace : Array(String) | Nil #

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

[View source]
def error_class : String | Nil #

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

[View source]
def error_message : String | Nil #

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

[View source]
def execute(ctx : Sidekiq::Context) #

[View source]
def extra_params : Hash(String, JSON::Any) #

[View source]
def extra_params=(value : Hash(String, JSON::Any)) #

[View source]
def failed_at : Time | Nil #

[View source]
def failed_at=(failed_at : Time | Nil) #

[View source]
def jid : String #

[View source]
def jid=(jid : String) #

[View source]
def klass : String #

[View source]
def klass=(klass : String) #

[View source]
def queue : String #

[View source]
def queue=(queue : String) #

[View source]
def retried_at : Time | Nil #

[View source]
def retried_at=(retried_at : Time | Nil) #

[View source]
def retry : Bool | Int32 #

[View source]
def retry=(retry : Bool | Int32) #

[View source]
def retry_count : Int32 #

[View source]
def retry_count=(retry_count : Int32) #

[View source]