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

Add num_workers config for sidekiq queue #823

Merged
merged 2 commits into from
Oct 13, 2024

Conversation

jacovdbergh
Copy link
Contributor

This PR updates rusty-sidekiq to the latest version, which added a way to configure the number of workers.
See https://github.com/film42/sidekiq-rs/pull/41/files

Seeing that the pg queue already supported this, I made the config parameter name the same and used the same default.

Ps. I'm pretty new to Rust and still learning daily, so please do suggest changes to make the code better or more in line with idiomatic Rust.

The rusty-sidekiq update also brings in a way to use cancellation tokens to wait for currently processing jobs to be done before killing the process. If this PR is accepted, I'll try to incorporate the cancellation feature into Loco next.

@kaplanelad kaplanelad merged commit 387d094 into loco-rs:master Oct 13, 2024
17 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.

2 participants