-
Notifications
You must be signed in to change notification settings - Fork 21
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
Reporter is not starting since 1.5.1 for worker processes #184
Comments
Hey @kwent, thanks for the report! Could you share with us what command you use for starting those Sidekiq processes? |
Procfile
|
@kwent That PR suppresses the reporter when running in a Rake task or Rails console, and that shouldn't be the case when running Would you mind installing 1.5.1 (or 1.5.2, shouldn't matter) locally so we could see the output of the following statements? Paste them into an initializer (any initializer) and start Sidekiq via puts "=" * 80
puts "console: #{defined?(::Rails::Console)}"
puts "rake: #{defined?(::Rake)}"
puts "rake app: #{defined?(::Rake) && Rake.respond_to?(:application)}"
puts "tasks: #{defined?(::Rake) && Rake.respond_to?(:application) && Rake.application.top_level_tasks.inspect}"
puts "=" * 80 |
Weirdly this is outputting same values. using
using
|
Oh right, that makes sense. v1.5.1 is the first version we started looking at those values to suppress the reporter, but the values would be the same regardless of our gem. Thanks for doing this! It's really helpful, and I should have a fix out later today. |
Nope, I take that back. I thought we were treating the empty array of rake tasks as truthy, but we're already calling Can you run one more thing for me? Doesn't matter what version of the gem. puts "=" * 80
puts "generate: #{defined?(::Rails::Command::GenerateCommand)}"
puts "=" * 80 |
Sure thing
|
Thanks, that's what I would expect, so I'm still baffled why the reporter would have been suppressed. Do you have access to your application logs from when 1.5.1 was preventing the reporter from starting? I'd love to see the Judoscale logs (prefixed with |
Unfortunately way too hard for me to find this information ( we have lot of logs ). |
Yep, I understand. I've confirmed that we have several customers using v1.5.2 with Sidekiq processes reporting as expected, so the issue appears to be specific to your app. If you decide to try the upgrade again and are able to capture those logs, please report back. |
We were indeed using |
Hi,
This PR is preventing the reporter to start in all our worker processes (sidekiq specifically).
Reversing to 1.5.0 fixes the issue on our side.
Regards
The text was updated successfully, but these errors were encountered: