Sha256: 8a6baa12876c267b2cfc602264521fdc5fb19c6309bff95f45023190e7f59728

Contents?: true

Size: 240 Bytes

Versions: 3

Compression:

Stored size: 240 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
      CleanJob.perform_later
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
easy_ml-0.2.0.pre.rc34 config/initializers/zhong.rb
easy_ml-0.2.0.pre.rc33 config/initializers/zhong.rb
easy_ml-0.2.0.pre.rc32 config/initializers/zhong.rb