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:
parent
f8d9a51949
commit
02b63a5f9e
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ module ActiveJob
|
|||
end
|
||||
|
||||
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
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue