FIX: don't attempt to schedule if there is no next run

This commit is contained in:
Sam 2017-10-11 14:27:16 +11:00
parent 233299982f
commit 6b4a1af160
1 changed files with 1 additions and 1 deletions

View File

@ -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!