-
Notifications
You must be signed in to change notification settings - Fork 10
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
MaxRetry with {} Queue Option Argument throwing Nil Error #21
Milestone
Comments
Feel free to submit a PR. Thank you. |
opt_args = opts[:queue_options][:arguments].blank? ? {} : opts[:queue_options][:arguments].inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo} should probably be opt_args = if opts[:queue_options][:arguments].blank?
{}
else
opts[:queue_options][:arguments].transform_keys(&:to_sym)
end |
Yeah, that looks ruby like. It is also important to note that |
@anuonifade Bunny and Kicks require 2.5 and arguably should require 2.7. Should have done it a couple of years ago, in fact. |
Addressed in #22 by @anuonifade and @texpert. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When Using a MaxRetry handler option for Queues and Queue Option argument is an empty hash, it throws an error.
The line
kicks/lib/sneakers/handlers/maxretry.rb
Line 87 in 185b51c
opts[:queue_options][:arguments] ?
will return true and trying toinject
and empty hash will raise an error.Changing the line
To
Should fix the issue.
The text was updated successfully, but these errors were encountered: