feat: Add Cron Jobs In Chatwoot and update installation notice (#1630)
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user