FIX: don't attempt to schedule if there is no next run
This commit is contained in:
parent
233299982f
commit
6b4a1af160
|
@ -100,7 +100,7 @@ module Scheduler
|
|||
current_owner: @current_owner
|
||||
}.to_json
|
||||
|
||||
redis.zadd queue_key, @next_run , @klass
|
||||
redis.zadd queue_key, @next_run , @klass if @next_run
|
||||
end
|
||||
|
||||
def del!
|
||||
|
|
Loading…
Reference in New Issue