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

@@ -0,0 +1,12 @@
class Internal::CheckNewVersionsJob < ApplicationJob
queue_as :scheduled_jobs
def perform
return unless Rails.env.production?
latest_version = ChatwootHub.latest_version
return unless latest_version
::Redis::Alfred.set(::Redis::Alfred::LATEST_CHATWOOT_VERSION, latest_version)
end
end

View File

@@ -1,3 +1,4 @@
# TODO: lets move this to active job, since thats what we use over all
class ConversationReplyEmailWorker
include Sidekiq::Worker
sidekiq_options queue: :mailers