class

Kiq::Client

Inherits Reference < Object

Constructors

new(config : Config = Kiq.default_configuration)
Source

Class methods

arg_of(msg : Msg, key : String) : Arg
Source
enqueue(klass : String, *args : Arg) : String | Nil

Resque-compatible helpers (1:1 with Sidekiq::Client singleton).

Source
enqueue_to(queue : String, klass : String, *args : Arg) : String | Nil
Source
from_any(v : JSON::Any) : Arg
Source
push(item : Msg) : String | Nil
Source
push_bulk(items : Msg) : Array(String | Nil)
Source
to_any(v : Arg) : JSON::Any
Source

Instance methods

atomic_push(payloads : Array(Msg)) : Nil
Source
config
Source
normalize_item(item : Msg) : Msg
Source
push(item : Msg) : String | Nil

The main method used to push a job to Redis. Returns the jid, or nil if a client middleware stopped the push.

Source
push_bulk(items : Msg) : Array(String | Nil)

Push a large number of jobs in one round trip. items["args"] is an Array of Arrays; every job gets its own jid.

Source
raw_push(payloads : Array(Msg)) : Nil
Source
verify_json(item : Msg) : Nil
Source