struct

TestJob

Inherits JSON::Serializable / JoobQ::Job / Struct / Value / Object

Constructors

new(pull : JSON::PullParser)
new(x : Int32)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)

Class methods

delay(for wait_time : Time::Span, **args)
Source
perform(x : Int32)
Source
perform
Source
perform
Source
schedule(every : Time::Span, **args)

Allows for scheduling Jobs at an interval time span.

TestJob.run(every: 1.second, x: 1)
Source

Instance methods

at
at=(at : Time | Nil)
expires
expires=(expires : Int32)
jid

The Unique identifier for this job

perform
Source
queue
queue=(queue : String)
retries
retries=(retries : Int32)
x=(x : Int32)
Source