diff options
-rw-r--r-- | README.md | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -24,8 +24,8 @@ Set the queue adapter for Active Job: ``` ruby ActiveJob::Base.queue_adapter = :inline # default queue adapter -# Adapters currently supported: :delayed_job, :que, :queue_classic, :resque, -# :sidekiq, :sneakers, :sucker_punch +# Adapters currently supported: :backburner, :delayed_job, :que, :queue_classic, +# :resque, :sidekiq, :sneakers, :sucker_punch ``` Declare a job like so: @@ -43,7 +43,15 @@ end Enqueue a job like so: ```ruby -MyJob.enqueue record +MyJob.enqueue record # Enqueue a job to be performed as soon the queueing system is free. +``` + +```ruby +MyJob.enqueue_at Date.tomorrow.noon, record # Enqueue a job to be performed tomorrow at noon. +``` + +```ruby +MyJob.enqueue_in 1.week, record # Enqueue a job to be performed 1 week from now. ``` That's it! |