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

Use scoped subscription to ActiveSupport::Notifications #335

Merged
merged 1 commit into from
Feb 20, 2016
Merged

Use scoped subscription to ActiveSupport::Notifications #335

merged 1 commit into from
Feb 20, 2016

Conversation

0x0badc0de
Copy link
Contributor

When chewy tasks are invoked multiple times from the same environment - their stats are printed as many times as they were invoked. Easiest way to see it is with rake chewy:update[model1] chewy:reset[model2].
This PR makes subscriptions scoped to the task block only.

pyromaniac added a commit that referenced this pull request Feb 20, 2016
…e-tasks

Use scoped subscription to ActiveSupport::Notifications
@pyromaniac pyromaniac merged commit 3ff53ad into toptal:master Feb 20, 2016
@pyromaniac
Copy link
Contributor

Thanks!

@0x0badc0de 0x0badc0de deleted the block-scoped-subscribe-in-rake-tasks branch April 21, 2016 13:38
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