Skip to content
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

AMQP: added custom delayed queue config #796

Conversation

surendratiwari3
Copy link
Contributor

Summary:

This pull request introduces a configurable option to specify a custom delayed queue in the AMQP configuration. The goal is to allow users to have greater flexibility in handling delayed tasks without the need to create multiple delayed queues in Machinery.

Changes:

Added a new configuration parameter DelayedQueue to the AMQP configuration.
The DelayedQueue parameter allows users to set a custom name for the delayed queue.

Motivation:

Currently, Machinery create multiple queue when we choose task with retry or delayed task. This limited the scaleability when we have millions of delayed task.

Usages:
This feature can be used if env variables AMQP_DELAYED_QUEUE is set else it will continued with current approach in both v1 and v2.

@surendratiwari3
Copy link
Contributor Author

@RichardKnop Please review and merge.

@RichardKnop RichardKnop merged commit 233ea99 into RichardKnop:master Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants