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

NoMethodError: undefined method `bulk_requeue' for Sidekiq::BasicFetch:Class #110

Closed
mateusluizfb opened this issue Jul 2, 2020 · 6 comments

Comments

@mateusluizfb
Copy link

mateusluizfb commented Jul 2, 2020

This was my original issue, I thought it was a sidekiq bug, but it was answered that was a sidekiq-limit_fetch issue.

Ruby version: 2.6.4
Sidekiq / Pro / Enterprise version(s): 6.1.0

Please include your initializer and any error message with the full backtrace.

Interrupt: Interrupt
  from sidekiq/cli.rb:152:in `block in <class:CLI>'
  from sidekiq/cli.rb:173:in `handle_signal'
  from sidekiq/cli.rb:98:in `launch'
  from sidekiq/cli.rb:83:in `run'
  from bundle/ruby/2.6.0/gems/sidekiq-6.1.0/bin/sidekiq:31:in `<top (required)>'
  from bundle/ruby/2.6.0/bin/sidekiq:23:in `load'
  from bundle/ruby/2.6.0/bin/sidekiq:23:in `<top (required)>'
  from bundler/cli/exec.rb:74:in `load'
  from bundler/cli/exec.rb:74:in `kernel_load'
  from bundler/cli/exec.rb:28:in `run'
  from bundler/cli.rb:463:in `exec'
  from bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  from bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
  from bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
  from bundler/cli.rb:27:in `dispatch'
  from bundler/vendor/thor/lib/thor/base.rb:466:in `start'
  from bundler/cli.rb:18:in `start'
  from bundle/ruby/2.6.0/gems/bundler-1.17.3/exe/bundle:30:in `block in <top (required)>'
  from bundler/friendly_errors.rb:124:in `with_friendly_errors'
  from bundle/ruby/2.6.0/gems/bundler-1.17.3/exe/bundle:22:in `<top (required)>'
  from bin/bundle:104:in `load'
  from bin/bundle:104:in `<main>'
NoMethodError: undefined method `bulk_requeue' for Sidekiq::BasicFetch:Class
  from sidekiq/limit_fetch.rb:30:in `bulk_requeue'
  from sidekiq/launcher.rb:61:in `stop'
  from sidekiq/cron/launcher.rb:36:in `stop'
  from sidekiq/cli.rb:102:in `rescue in launch'
  from sidekiq/cli.rb:93:in `launch'
  from sidekiq/cli.rb:83:in `run'
  from bundle/ruby/2.6.0/gems/sidekiq-6.1.0/bin/sidekiq:31:in `<top (required)>'
  from bundle/ruby/2.6.0/bin/sidekiq:23:in `load'
  from bundle/ruby/2.6.0/bin/sidekiq:23:in `<top (required)>'
  from bundler/cli/exec.rb:74:in `load'
  from bundler/cli/exec.rb:74:in `kernel_load'
  from bundler/cli/exec.rb:28:in `run'
  from bundler/cli.rb:463:in `exec'
  from bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  from bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
  from bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
  from bundler/cli.rb:27:in `dispatch'
  from bundler/vendor/thor/lib/thor/base.rb:466:in `start'
  from bundler/cli.rb:18:in `start'
  from bundle/ruby/2.6.0/gems/bundler-1.17.3/exe/bundle:30:in `block in <top (required)>'
  from bundler/friendly_errors.rb:124:in `with_friendly_errors'
  from bundle/ruby/2.6.0/gems/bundler-1.17.3/exe/bundle:22:in `<top (required)>'
  from bin/bundle:104:in `load'
  from bin/bundle:104:in `<main>'
ADDITIONAL DATA

Are you using an old version? No
Have you checked the changelogs to see if your issue has been fixed in a later version? Yes

https://github.com/mperham/sidekiq/blob/master/Changes.md
https://github.com/mperham/sidekiq/blob/master/Pro-Changes.md
https://github.com/mperham/sidekiq/blob/master/Ent-Changes.md

@leoarnold
Copy link

The method bulk_requeue changed from class method to instance method in sidekiq/sidekiq#4602

@pomartel
Copy link

@mateusluizfb Did you close the issue because there is a fix? I also run into this issue.

@pcraston
Copy link

@mateusluizfb I'd also be keen to hear why you closed this issue. I'm still seeing it with sidekiq 6.1.1

@vinc
Copy link

vinc commented Jul 28, 2020

+1 same issue here after upgrading sidekiq from 6.0.7 to 6.1.1

@lucaszunder
Copy link

lucaszunder commented Aug 3, 2020

@mateusluizfb Same issue even after upgrading to 6.11

@ojsdude
Copy link

ojsdude commented Dec 14, 2021

+1 I am still having the same issue when using sidekiq -> 6.2.1 with sidekiq-limit_fetch -> 3.4.0 on a heroku rails environment

Message: undefined method `bulk_requeue' for Sidekiq::BasicFetch:Class
/app/vendor/bundle/ruby/2.7.0/gems/sidekiq-limit_fetch-3.4.0/lib/sidekiq/limit_fetch.rb:30 bulk_requeue
/app/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.2.1/lib/sidekiq/manager.rb:127 hard_shutdown
/app/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.2.1/lib/sidekiq/manager.rb:80 stop
/app/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.2.1/lib/sidekiq/launcher.rb:56 stop
/app/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.2.1/lib/sidekiq/cli.rb:116 rescue in launch
/app/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.2.1/lib/sidekiq/cli.rb:107 launch
/app/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.2.1/lib/sidekiq/cli.rb:97 run
/app/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.2.1/bin/sidekiq:31 <top (required)>
/app/vendor/bundle/ruby/2.7.0/bin/sidekiq:23 load
/app/vendor/bundle/ruby/2.7.0/bin/sidekiq:23 <top (required)>
/app/vendor/bundle/ruby/2.7.0/gems/bundler-2.2.21/lib/bundler/cli/exec.rb:63 load
/app/vendor/bundle/ruby/2.7.0/gems/bundler-2.2.21/lib/bundler/cli/exec.rb:63 kernel_load
/app/vendor/bundle/ruby/2.7.0/gems/bundler-2.2.21/lib/bundler/cli/exec.rb:28 run
/app/vendor/bundle/ruby/2.7.0/gems/bundler-2.2.21/lib/bundler/cli.rb:474 exec
/app/vendor/bundle/ruby/2.7.0/gems/bundler-2.2.21/lib/bundler/vendor/thor/lib/thor/command.rb:27 run
/app/vendor/bundle/ruby/2.7.0/gems/bundler-2.2.21/lib/bundler/vendor/thor/lib/thor/invocation.rb:127 invoke_command
/app/vendor/bundle/ruby/2.7.0/gems/bundler-2.2.21/lib/bundler/vendor/thor/lib/thor.rb:392 dispatch
/app/vendor/bundle/ruby/2.7.0/gems/bundler-2.2.21/lib/bundler/cli.rb:30 dispatch
/app/vendor/bundle/ruby/2.7.0/gems/bundler-2.2.21/lib/bundler/vendor/thor/lib/thor/base.rb:485 start
/app/vendor/bundle/ruby/2.7.0/gems/bundler-2.2.21/lib/bundler/cli.rb:24 start
/app/vendor/bundle/ruby/2.7.0/gems/bundler-2.2.21/exe/bundle:49 block<top (required)>
/app/vendor/bundle/ruby/2.7.0/gems/bundler-2.2.21/lib/bundler/friendly_errors.rb:128 with_friendly_errors
/app/vendor/bundle/ruby/2.7.0/gems/bundler-2.2.21/exe/bundle:37 <top (required)>
/app/bin/bundle:104 load
/app/bin/bundle:104 <main>

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

No branches or pull requests

7 participants