mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 19:48:08 +00:00
Currently, auto-assignment runs only during conversation creation or update events. If no agents are online when new conversations arrive, those conversations remain unassigned. With this change, unassigned conversations will be automatically assigned once agents become available. The job runs every 15 minutes and uses a fair distribution threshold of 100 to prevent a large number of conversations from being assigned to a single available agent. This will be customizable later.
14 lines
424 B
Ruby
14 lines
424 B
Ruby
module Limits
|
|
BULK_ACTIONS_LIMIT = 100
|
|
BULK_EXTERNAL_HTTP_CALLS_LIMIT = 25
|
|
URL_LENGTH_LIMIT = 2048 # https://stackoverflow.com/questions/417142
|
|
OUT_OF_OFFICE_MESSAGE_MAX_LENGTH = 10_000
|
|
GREETING_MESSAGE_MAX_LENGTH = 10_000
|
|
CATEGORIES_PER_PAGE = 1000
|
|
AUTO_ASSIGNMENT_BULK_LIMIT = 100
|
|
|
|
def self.conversation_message_per_minute_limit
|
|
ENV.fetch('CONVERSATION_MESSAGE_PER_MINUTE_LIMIT', '200').to_i
|
|
end
|
|
end
|