aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/lib/active_job/queue_adapters/backburner_adapter.rb
diff options
context:
space:
mode:
authorCristian Bica <cristian.bica@gmail.com>2014-08-30 00:04:01 +0300
committerCristian Bica <cristian.bica@gmail.com>2014-08-30 00:04:01 +0300
commit02b63a5f9e441a02b6e22ad8b3f8e66c10a996fc (patch)
tree7e27a8d73acb0d037a0549d088d21ca44aa606b2 /activejob/lib/active_job/queue_adapters/backburner_adapter.rb
parentf8d9a51949d6f6cfcab7cc7d501e137836eb88dc (diff)
downloadrails-02b63a5f9e441a02b6e22ad8b3f8e66c10a996fc.tar.gz
rails-02b63a5f9e441a02b6e22ad8b3f8e66c10a996fc.tar.bz2
rails-02b63a5f9e441a02b6e22ad8b3f8e66c10a996fc.zip
Fixed Active Job Backburner adapter
Diffstat (limited to 'activejob/lib/active_job/queue_adapters/backburner_adapter.rb')
-rw-r--r--activejob/lib/active_job/queue_adapters/backburner_adapter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activejob/lib/active_job/queue_adapters/backburner_adapter.rb b/activejob/lib/active_job/queue_adapters/backburner_adapter.rb
index 8d34155645..8ebee36e45 100644
--- a/activejob/lib/active_job/queue_adapters/backburner_adapter.rb
+++ b/activejob/lib/active_job/queue_adapters/backburner_adapter.rb
@@ -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