1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
This commit is contained in:
Mike Perham 2015-12-04 11:03:16 -08:00
parent 98aa23e4ae
commit dc8afa7faf

View file

@ -54,6 +54,8 @@ module Sidekiq
client_push('class' => self, 'args' => args)
end
# +interval+ must be a timestamp, numeric or something that acts
# numeric (like an activesupport time interval).
def perform_in(interval, *args)
int = interval.to_f
now = Time.now