config/initializers/zhong.rb in easy_ml-0.2.0.pre.rc30 vs config/initializers/zhong.rb in easy_ml-0.2.0.pre.rc31
- old
+ new
@@ -1,16 +1,7 @@
require "zhong"
-Zhong.setup do |config|
- config.logger = Rails.logger
- config.time_zone = "UTC"
-
- # Use Redis to persist the scheduler state
- config.redis = Redis.new(
- url: ENV.fetch("REDIS_URL") { "redis://localhost:6379/0" },
- )
-end
-
+Zhong.redis = Redis.new(url: ENV.fetch("REDIS_URL") { "redis://localhost:6379/0" })
Zhong.schedule do
every 1.hour, "cleanup" do
CleanJob.perform_later
end
end