1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
mperham--sidekiq/lib
Samwise Wang 6b14010199 Fix the error in worker#perform_in about interval type (#3170)
Situation:
We are using Sidekiq Pro with ActiveSupport.
When I passed a object which is ActiveSupport::TimeWithZone to perform_at,
`TypeError: can't convert ActiveSupport::TimeWithZone into an exact
number` has occurred.

Problem:
Time can't plus a ActiveSupport::TimeWithZone object.

Solution:
We can transform any Time object to float, and use it to compare and
calculate.
2016-09-30 02:31:08 -07:00
..
generators/sidekiq
sidekiq Fix the error in worker#perform_in about interval type (#3170) 2016-09-30 02:31:08 -07:00
sidekiq.rb