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

Accept three arguments into Sidekiq error handler #495

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

t27duck
Copy link
Contributor

@t27duck t27duck commented Oct 14, 2023

Closes #493

Starting with Sidekiq 7.1.5 the error handler is passed three arguments. The new argument is the Sidekiq config. The _config key from the second argument has been removed.

Support for passing two arguments and expecting the _config is still supported but will raise a deprication warning and will be removed in Sidekiq 8.

This change adds an optional third argument to the error handler lambda defaulted to Sidekiq.default_configuration as per the Sidekiq changelog on how to handle this.

This should make the gem forwards compatible with Sidekiq 8 (excluding any other breaking changes).

Sidekiq PR introducing this change: sidekiq/sidekiq#6051

Starting with Sidekiq 7.1.5 the error handler is passed three arguments. The new argument is the Sidekiq config. The `_config` key from the second argument has been removed.

Support for passing two arguments and expecting the `_config` is still supported but will raise a deprication warning and will be removed in Sidekiq 8.

This change adds an optional third argument to the error handler lambda defaulted to `Sidekiq.default_configuration` as per the Sidekiq changelog on how to handle this.

This should make the gem forwards compatible with Sidekiq 8 (excluding any other breaking changes).

Sidekiq PR introducing this change: sidekiq/sidekiq#6051
Copy link
Member

@joshuap joshuap left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@joshuap joshuap merged commit 15a5766 into honeybadger-io:master Oct 16, 2023
58 checks passed
@t27duck t27duck deleted the sidekiq_error_handler_args branch October 16, 2023 22:23
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 7.1.5 and later changes number of arguments for error handlers
2 participants