1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fixed Active Job Backburner adapter

This commit is contained in:
Cristian Bica 2014-08-30 00:04:01 +03:00
parent f8d9a51949
commit 02b63a5f9e

View file

@ -9,7 +9,7 @@ module ActiveJob
end end
def enqueue_at(job, timestamp, *args) def enqueue_at(job, timestamp, *args)
delay = Time.current.to_f - timestamp delay = timestamp - Time.current.to_f
Backburner::Worker.enqueue JobWrapper, [ job.name, *args ], queue: job.queue_name, delay: delay Backburner::Worker.enqueue JobWrapper, [ job.name, *args ], queue: job.queue_name, delay: delay
end end
end end