fix: agent role based search

This commit is contained in:
Tejaswini Chile 2022-12-23 15:43:01 +05:30
parent 91205627b4
commit 08c75a5946
3 changed files with 17 additions and 16 deletions

View file

@ -1,5 +1,5 @@
class Conversations::AccountBasedSearchJob < ApplicationJob
queue_as :default
queue_as :async_database_migration
def perform(account_id)
Contact.rebuild_pg_search_documents(account_id)

View file

@ -1,5 +1,5 @@
class Conversations::MultiSearchJob < ApplicationJob
queue_as :default
queue_as :async_database_migration
def perform
Account.all.each do |account|

View file

@ -12,20 +12,21 @@
# even put in dynamic logic, like a host-specific queue.
# http://www.mikeperham.com/2013/11/13/advanced-sidekiq-host-specific-queues/
:queues:
- [low, 1]
- [scheduled_jobs, 1]
- [webhooks, 1]
- [bots, 1]
- [active_storage_analysis, 1]
- [action_mailbox_incineration, 1]
- [active_storage_purge, 1]
- [integrations, 2]
- [default, 2]
- [mailers, 2]
- [medium, 3]
- [events, 3]
- [action_mailbox_routing, 3]
- [high, 5]
- [async_database_migration, 1]
- [low, 2]
- [scheduled_jobs, 2]
- [webhooks, 2]
- [bots, 2]
- [active_storage_analysis, 2]
- [action_mailbox_incineration, 2]
- [active_storage_purge, 2]
- [integrations, 3]
- [default, 3]
- [mailers, 3]
- [medium, 4]
- [events, 4]
- [action_mailbox_routing, 4]
- [high, 6]
- [critical, 10]
# you can override concurrency based on environment