-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Accomodate apps that do not use Sidekiq Enterprise (#42)
* Fix: Accomodate apps that do not use Sidekiq Enterprise Why? ==== Apps that do not use Sidekiq Enterprise will not have a `Sidekiq::Limiter` module defined. As a result, if an error is encountered while in the `#call` method of `SidekiqPrometheus::JobMetrics` then an additional problem will be encountered, causing a large backlog of errors re-enqueueing into Sidekiq. What? ===== 1. Wrap the specs in following proper contexts: * That Sidekiq Enterprise error class exists. And... * That error class does NOT exist. 2. Test that the correct behavior occurs in those two contexts. 3. Lastly, in the implementation code, make sure we ask that we check for presence of `Sidekiq::Limiter::OverLimit` * rake standard:fix --------- Co-authored-by: Lukas Eklund <[email protected]>
- Loading branch information
Showing
2 changed files
with
92 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters