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

Upgrade to Sidekiq 7 #115

Merged
merged 6 commits into from
Sep 24, 2024
Merged

Upgrade to Sidekiq 7 #115

merged 6 commits into from
Sep 24, 2024

Conversation

brucebolt
Copy link
Member

@brucebolt brucebolt commented Sep 17, 2024

This upgrades to Sidekiq 7 and releases version 9.0.0 of the gem.

Upgrading to Sidekiq 7 includes a number of breaking changes, which require action to be taken in applications. These steps are detailed in the CHANGELOG.

Trello card

brucebolt and others added 3 commits September 16, 2024 16:46
Sidekiq 7.0 no longer uses the `redis` gem, so we should swap to use the
new `redis-client` gem.
Support for `redis-namespace` has been removed in Sidekiq 7.0, so we
need to stop including it as a dependency.
This makes the changes required for upgrading Sidekiq to version 7.0.

Co-authored-by: Callum Knights <callum.knights@digital.cabinet-office.gov.uk>
Co-authored-by: George Eaton <george@dxw.com>
Co-authored-by: Jon Hallam <jonathan.hallam@digital.cabinet-office.gov.uk>
Co-authored-by: Ynda Jas <yndajas@gmail.com>
In Sidekiq 7, `redis_namespace` is no longer supported. We therefore
need to run a migration at the point of upgrading to remove the
namespace from existing Redis keys.

If we don't run the migration, already queued jobs won't get processed.
@brucebolt brucebolt marked this pull request as ready for review September 24, 2024 09:56
Copy link
Contributor

@JonathanHallam JonathanHallam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks Bruce

@brucebolt brucebolt merged commit 946dd53 into main Sep 24, 2024
17 checks passed
@brucebolt brucebolt deleted the sidekiq-mobbing branch September 24, 2024 10:29
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