- Rearrange and reprioritize current sidekiq queues - Trim the unnecessary queues ref: https://linear.app/chatwoot/issue/CW-1480/chore-run-all-sidekiq-jobs-async
11 lines
279 B
Ruby
11 lines
279 B
Ruby
class AgentBots::CsmlJob < ApplicationJob
|
|
queue_as :high
|
|
|
|
def perform(event, agent_bot, message)
|
|
event_data = { message: message }
|
|
Integrations::Csml::ProcessorService.new(
|
|
event_name: event, agent_bot: agent_bot, event_data: event_data
|
|
).perform
|
|
end
|
|
end
|