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

feat(distro): add new queue per distro #2

Merged
merged 1 commit into from
Jan 7, 2025
Merged

Conversation

saber-solooki
Copy link

In this PR I have implemented a mechanism to use different queue per data center. By passing distribution parameter like "5:2:1" for example, the jobs will be distributed between queues like this:
5 task in first queue
2 task in the second one
and 1 in third queue
then we need to specify distribution_index in each server to say to which queue index the tasks should be read in this worker. We can pass this index by using environment variable

@saber-solooki saber-solooki merged commit 6098152 into main Jan 7, 2025
9 of 11 checks passed
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.

1 participant