ActiveJob::Base
Constructors
new(*args)
SourceClass methods
__discard_classes
Source__retry_rule
Sourcedefault_priority
SourceJob-class lookup by name (compile-time registry) — used by recurring tasks and anything resolving class_name strings.
perform_later(*args)
Sourceperform_now(*args)
Sourceset(*, queue : String | Nil = nil, priority : Int32 | Nil = nil, wait : ActiveSupport::Duration | Time::Span | Nil = nil, wait_until : Time | Nil = nil) : JobSetter
set(queue:, wait:, wait_until:, priority:) — like Rails' JobSetter.
Instance methods
__build_record
Source__cb_after_enqueue
Source__cb_after_perform
Source__cb_before_enqueue
Source__execute_now
Source__perform_result
Last perform's return value (perform_now returns it). Limited to scalars — Crystal needs a closed type for the ivar; documented deviation from Ruby's "anything".
Last perform's return value (perform_now returns it). Limited to scalars — Crystal needs a closed type for the ivar; documented deviation from Ruby's "anything".
arguments
exception_executions
executions
executions=(executions : Int32)
job_id
perform_now
Instance form: run this (possibly deserialized) job with its own
stored arguments — Base.deserialize(data).perform_now.
priority
Sourceprovider_job_id
queue_name
Sourcescheduled_at
serialize
Sourcesuccessfully_enqueued?
SourceMacros
after_enqueue
Sourceafter_perform
Sourcearound_enqueue
Sourcearound_perform
Sourcebefore_enqueue
Sourcebefore_perform
Sourcediscard_on(klass)
Sourcequeue_as(name)
Sourcequeue_with_priority(value)
Sourceretry_on(klass, attempts = 3, wait = 3.seconds)
Source