Class: BackRun::Adapter
- Inherits:
-
Object
- Object
- BackRun::Adapter
- Defined in:
- lib/back_run/adapter.rb
Instance Method Summary collapse
Instance Method Details
#enqueue(job) ⇒ Object
6 7 8 |
# File 'lib/back_run/adapter.rb', line 6 def enqueue(job) BackRun.pubsub.publish(Job.new_from_active_job(job)) end |
#enqueue_at(job, _timestamp) ⇒ Object
10 11 12 |
# File 'lib/back_run/adapter.rb', line 10 def enqueue_at(job, ) enqueue(job) end |