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 #1493

Merged
merged 6 commits into from
Sep 25, 2024
Merged

Upgrade to Sidekiq 7 #1493

merged 6 commits into from
Sep 25, 2024

Conversation

brucebolt
Copy link
Member

@brucebolt brucebolt commented Sep 23, 2024

This upgrades govuk_sidekiq to 9.0.0, which in turn upgrades Sidekiq to 7.*.

After deployment, the redis_namespace:remove_namespace rake task will need to be immediately run, to retain any jobs that were queued before the upgrade was deployed.

Trello card

@brucebolt brucebolt force-pushed the sidekiq-7 branch 3 times, most recently from 288335c to 0455c07 Compare September 23, 2024 12:27
@brucebolt brucebolt changed the base branch from main to rails-7.2 September 23, 2024 12:28
@brucebolt brucebolt force-pushed the sidekiq-7 branch 2 times, most recently from 7b60373 to 7d0ae6c Compare September 23, 2024 12:48
Base automatically changed from rails-7.2 to main September 23, 2024 15:29
@brucebolt brucebolt force-pushed the sidekiq-7 branch 2 times, most recently from 0d1773a to 17da129 Compare September 24, 2024 10:33
We have now upgraded to Sidekiq 7, so don't need to require strict
arguments in preparation for switching, as this version includes that
requirement by default.
`Sidekiq::Worker` has been deprecated in Sidekiq 7, so we need to
replace it with `Sidekiq::Job`, and then rename the workers to be jobs.
`Sidekiq::Worker` has been deprecated in Sidekiq 7, so we need to
replace it with `Sidekiq::Job`, and then rename the workers to be jobs.
`Sidekiq::Worker` has been deprecated in Sidekiq 7, so we need to
replace it with `Sidekiq::Job`, and then rename the workers to be jobs.
A [bug in version
8.0.8](mhenrixon/sidekiq-unique-jobs#846)
means jobs never get processed when using `until_and_while_executing`
lock type.

Therefore pinning to use an earlier version that does not have this
issue.
@brucebolt brucebolt marked this pull request as ready for review September 24, 2024 10:45
Copy link
Contributor

@Gweaton Gweaton left a comment

Choose a reason for hiding this comment

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

Thanks for the descriptive commits, definitely helped with my review.

@brucebolt brucebolt merged commit 405f8e3 into main Sep 25, 2024
9 checks passed
@brucebolt brucebolt deleted the sidekiq-7 branch September 25, 2024 09:22
brucebolt added a commit that referenced this pull request Sep 25, 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.

2 participants