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

feat: disable all workers in rails console #636

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

roelbondoc
Copy link
Member

As it turns out, the console callback is called after after_initialize config callback in the Railtie. This can still cause the metric worker to startup when it's not meant to. This change will shutdown the MetricsWorker and EventWorker when the Rails console is loaded.

Before submitting a pull request, please make sure the following is done:

  1. If you've fixed a bug or added code that should be tested, add tests!
  2. Run rake spec in the repository root.
  3. Use a pull request title that conforms to conventional commits.

As it turns out, the `console` callback is called after `after_initialize`
config callback in the Railtie. This can still cause the metric worker to
startup when it's not meant to. This change will shutdown the
`MetricsWorker` and `EventWorker` when the Rails console is loaded.
@roelbondoc roelbondoc requested a review from a team November 12, 2024 18:58
@roelbondoc roelbondoc merged commit d0bcb42 into master Nov 14, 2024
59 checks passed
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.

2 participants