feat: Add Cron Jobs In Chatwoot and update installation notice (#1630)

This commit is contained in:
Sojan Jose
2021-01-11 17:34:41 +05:30
committed by GitHub
parent 160a6fc6cf
commit 346830ab1d
12 changed files with 95 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
schedule_file = 'config/schedule.yml'
Sidekiq.configure_client do |config|
config.redis = Redis::Config.sidekiq
end
@@ -5,3 +7,6 @@ end
Sidekiq.configure_server do |config|
config.redis = Redis::Config.sidekiq
end
# https://github.com/ondrejbartas/sidekiq-cron
Sidekiq::Cron::Job.load_from_hash YAML.load_file(schedule_file) if File.exist?(schedule_file) && Sidekiq.server?