mirror of
https://github.com/discourse/discourse.git
synced 2025-03-24 09:15:43 +08: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
|
current_owner: @current_owner
|
||||||
}.to_json
|
}.to_json
|
||||||
|
|
||||||
redis.zadd queue_key, @next_run , @klass
|
redis.zadd queue_key, @next_run , @klass if @next_run
|
||||||
end
|
end
|
||||||
|
|
||||||
def del!
|
def del!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user