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: Support sidekiq balance strategy and dedicated queues #543

Merged
merged 3 commits into from
Jan 13, 2025

Conversation

spencewenski
Copy link
Member

@spencewenski spencewenski commented Dec 31, 2024

Add support for the BalanceStrategy config from
rusty-sidekiq and default to BalanceStrategy#RoundRobin to ensure all queues have a chance to have their jobs run by default.

Also add support for dedicated queues via the
service.sidekiq.queue-config field. Queues listed in this field will run with a dedicated set of workers (equal to the num-workers sub-field for each queue).

Closes #540

@spencewenski
Copy link
Member Author

spencewenski commented Dec 31, 2024

@spencewenski spencewenski force-pushed the dedicated-queue-workers branch from 0814b83 to 4204cad Compare January 13, 2025 22:27
@spencewenski spencewenski marked this pull request as ready for review January 13, 2025 22:27
Add support for the `BalanceStrategy` config from
`rusty-sidekiq` and default to `BalanceStrategy#RoundRobin` to ensure
all queues have a chance to have their jobs run by default.

Also add support for dedicated queues via the
`service.sidekiq.queue-config` field. Queues listed in this field will
run with a dedicated set of workers (equal to the `num-workers`
sub-field for each queue).
@spencewenski spencewenski force-pushed the dedicated-queue-workers branch from 4204cad to 2e175e0 Compare January 13, 2025 22:35
Copy link

codecov bot commented Jan 13, 2025

Codecov Report

Attention: Patch coverage is 28.00000% with 36 lines in your changes missing coverage. Please review.

Project coverage is 40.42%. Comparing base (87020ff) to head (74d7206).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/service/worker/sidekiq/builder.rs 0.00% 19 Missing ⚠️
src/config/service/worker/sidekiq/mod.rs 0.00% 17 Missing ⚠️
Files with missing lines Coverage Δ
src/service/worker/sidekiq/service.rs 56.66% <100.00%> (+4.81%) ⬆️
src/config/service/worker/sidekiq/mod.rs 30.00% <0.00%> (-39.24%) ⬇️
src/service/worker/sidekiq/builder.rs 44.23% <0.00%> (-1.77%) ⬇️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 87020ff...74d7206. Read the comment docs.

@spencewenski spencewenski merged commit 843ac77 into main Jan 13, 2025
18 of 19 checks passed
@spencewenski spencewenski deleted the dedicated-queue-workers branch January 13, 2025 22:47
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.

Sidekiq-rs enhancements
1 participant