class

ActiveJob::SolidQueue::RecurringTask

Inherits Reference < Object

A cron-scheduled task (solid_queue RecurringTask): RecurringTask.new("cache-sweeper", class_name: "SweepJob", schedule: "@daily", queue: "low", priority: 3, args: [1, "x"])

Constructors

new(key : String, class_name : String, schedule : String, queue_name : String = "default", priority : Int32 | Nil = nil, args : Array = [] of Nil)
Source

Instance methods

arguments
build_record(at : Time) : EnqueuedJob

Builds the enqueue record for the occurrence at at. The job class is resolved from the compile-time registry — runtime instantiation by name is not a thing in Crystal.

Source
class_name
cron
enqueue_at(adapter : Adapter, at : Time) : Nil
Source
key
priority
queue_name