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

Turn off INFO -- : [Judoscale] Reporting 0 metrics in a rake task output #219

Closed
ArturT opened this issue Oct 8, 2024 · 2 comments · Fixed by #220
Closed

Turn off INFO -- : [Judoscale] Reporting 0 metrics in a rake task output #219

ArturT opened this issue Oct 8, 2024 · 2 comments · Fixed by #220

Comments

@ArturT
Copy link

ArturT commented Oct 8, 2024

Is it possible to disable the following logs in the output of a rake task?

I, [2024-10-08T10:37:19.514254 #2]  INFO -- : [Judoscale] Reporting 0 metrics
I, [2024-10-08T10:37:22.400691 #2]  INFO -- : [Judoscale] Reporting 0 metrics
I, [2024-10-08T10:37:25.359942 #2]  INFO -- : [Judoscale] Reporting 0 metrics

Is there a reason why Judoscale is running when we run a rake task on Heroku? It's not a web or worker-related process, so I thought Judoscale should be off. Thanks.


judoscale-rails (1.8.0)

@adamlogic
Copy link
Collaborator

Hey @ArturT, we don't have a way to know if we're running in a web or worker process, but we do suppress the reporter in certain rake tasks. We don't suppress in all rake tasks since some job backends (DJ, Resque) use Rake as their executable for processing jobs.

We could possibly make that "blocklist" of rake tasks configurable. Would that resolve your issue?

@ArturT
Copy link
Author

ArturT commented Oct 9, 2024

Yes, that would be helpful.

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 a pull request may close this issue.

2 participants