feat: Add Cron Jobs In Chatwoot and update installation notice (#1630)
This commit is contained in:
12
app/jobs/internal/check_new_versions_job.rb
Normal file
12
app/jobs/internal/check_new_versions_job.rb
Normal 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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user