mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 09:26:54 -06:00
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
Block a user