Sha256: f70eaf0a110e41a2b582d09330d9e64fd101f6d57950882bc9ad2f71f48f9ce7

Contents?: true

Size: 350 Bytes

Versions: 9

Compression:

Stored size: 350 Bytes

Contents

require "zhong"

Zhong.redis = Redis.new(url: ENV.fetch("REDIS_URL") { "redis://localhost:6379/0" })

if %w[zhong:start].include?(ARGV.first)
  Zhong.schedule do
    every 1.hour, "cleanup" do
      EasyML::CleanJob.perform_later
    end

    every 1.hour, "schedule retraining" do
      EasyML::ScheduleRetrainingJob.perform_later
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
easy_ml-0.2.0.pre.rc52 config/initializers/zhong.rb
easy_ml-0.2.0.pre.rc51 config/initializers/zhong.rb
easy_ml-0.2.0.pre.rc50 config/initializers/zhong.rb
easy_ml-0.2.0.pre.rc49 config/initializers/zhong.rb
easy_ml-0.2.0.pre.rc48 config/initializers/zhong.rb
easy_ml-0.2.0.pre.rc47 config/initializers/zhong.rb
easy_ml-0.2.0.pre.rc46 config/initializers/zhong.rb
easy_ml-0.2.0.pre.rc45 config/initializers/zhong.rb
easy_ml-0.2.0.pre.rc44 config/initializers/zhong.rb