-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(condo): INFRA-300 Message prioritization 📧📈 #4591
feat(condo): INFRA-300 Message prioritization 📧📈 #4591
Conversation
* @returns {'medium' | 'high' | 'low'} condo task queue | ||
*/ | ||
function getMessageQueue ({ type }) { | ||
// TODO(VKislov): separate queue for VoIP here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jira task?
f7a9a05
to
faac6d6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why we can not use bull's priorities?
...migrations/20240409162533-0380_alter_message_type_alter_messageappblacklist_type_and_more.js
Outdated
Show resolved
Hide resolved
Because of how this mechanism works under the hood. In short, this is due to the fact that priority in the queue only works with redis. Also that's really expensive operation for redis instance. |
911ad5a
to
7b31e2d
Compare
@@ -100,7 +100,9 @@ function removeCronTask (name, cron, opts = {}) { | |||
REMOVE_CRON_TASKS.push([name, taskOpts]) | |||
} | |||
|
|||
async function _scheduleRemoteTask (name, preparedArgs, preparedOpts, queue = DEFAULT_QUEUE_NAME) { | |||
async function _scheduleRemoteTask (name, preparedArgs, preparedOpts, queueName = DEFAULT_QUEUE_NAME) { | |||
const queue = TASK_QUEUE_REMAPPING.hasOwnProperty(queueName) ? TASK_QUEUE_REMAPPING[queueName] : queueName |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const queue = TASK_QUEUE_REMAPPING.hasOwnProperty(queueName) ? TASK_QUEUE_REMAPPING[queueName] : queueName | |
const queue = get(TASK_QUEUE_REMAPPING, queueName, queueName) |
f154da5
to
5fea60a
Compare
Quality Gate passedIssues Measures |
No description provided.