mirror of
https://github.com/endofunky/sidetiq.git
synced 2022-11-09 13:53:30 -05:00
Store and compare fixnums instead of objects.
This commit is contained in:
parent
3fb22a0c7f
commit
8acf3c8b6a
1 changed files with 2 additions and 2 deletions
|
@ -34,8 +34,8 @@ module Sidetiq
|
|||
# Returns true if a job is due, otherwise false.
|
||||
def schedule_next?(time)
|
||||
next_occurrence = @schedule.next_occurrence(time)
|
||||
if @last_scheduled != next_occurrence
|
||||
@last_scheduled = next_occurrence
|
||||
if @last_scheduled != next_occurrence.to_i
|
||||
@last_scheduled = next_occurrence.to_i
|
||||
return true
|
||||
end
|
||||
false
|
||||
|
|
Loading…
Reference in a new issue