JP Camara @jpcamara.com · Dec 19

TIL if you want to return the duration in seconds, returning it as an Integer is a _hard_ requirement There is a _specific_ check that the class is Integer. If you accidentally return a float, Sidekiq ignores it and reverts to its built-in delay policy. Be careful!

3 likes 1 replies

?

Replies

Mike Perham · Dec 19

We could probably adjust that to blindly call .to_f.