JoobQ::Scheduler
Inherits Reference < Object
Constructors
Instance methods
cron(pattern : String, &block : -> )
Sourcecron_scheduler
Sourcedelayed_scheduler
Sourceenqueue(time : Time::Span)
Sourceenqueue_due_jobs(current_time = Time.local)
Sourceevery(interval : Time::Span, job : Job.class, **args)
Sourcejobs
Sourcerecurring_scheduler
Sourcerun
Polls the delayed set every 5 seconds (with backoff when that fails) until stop; calling it on a
scheduler that already runs does nothing.
stop
Stops the cron, recurring and delayed loops and the run loop. JoobQ.shutdown calls this for every
scheduler of the configuration; embedders and specs may call it directly. Returns once no loop will
start another iteration (an iteration already under way finishes first).