Skip to content

Commit

Permalink
Merge pull request #156 from alphagov/remove-queue-size-check
Browse files Browse the repository at this point in the history
Remove unused SidekiqQueueSizeCheck base class
  • Loading branch information
benthorner authored Sep 14, 2020
2 parents ecb8891 + 12d9778 commit 2e17ceb
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 58 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 2.3.0

* Remove unused SidekiqQueueSizeCheck healthcheck base class

# 2.2.2

* Add www.googletagmanager.com and www.gstatic.com to Content Security Policy (https://github.com/alphagov/govuk_app_config/pull/153)
Expand Down
18 changes: 0 additions & 18 deletions docs/healthchecks.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,24 +128,6 @@ class MySidekiqQueueLatencyCheck < GovukHealthcheck::SidekiqQueueLatencyCheck
end
```

### `SidekiqQueueSizeCheck`

This class is the basis for a check which compares the Sidekiq queue sizes
with warning or critical thresholds.

```ruby
class MySidekiqQueueSizeCheck < GovukHealthcheck::SidekiqQueueSizeCheck
def warning_threshold(queue:)
# the warning threshold for a particular queue
end

def critical_threshold(queue:)
# the critical threshold for a particular queue
end
end
```


### `SidekiqRetrySizeCheck`

Similar to `SidekiqQueueSizeCheck`, this class is the basis for a check which
Expand Down
1 change: 0 additions & 1 deletion lib/govuk_app_config/govuk_healthcheck.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
require "govuk_app_config/govuk_healthcheck/threshold_check"
require "govuk_app_config/govuk_healthcheck/sidekiq_queue_check"
require "govuk_app_config/govuk_healthcheck/sidekiq_queue_latency_check"
require "govuk_app_config/govuk_healthcheck/sidekiq_queue_size_check"
require "govuk_app_config/govuk_healthcheck/sidekiq_retry_size_check"
require "json"

Expand Down
11 changes: 0 additions & 11 deletions lib/govuk_app_config/govuk_healthcheck/sidekiq_queue_size_check.rb

This file was deleted.

2 changes: 1 addition & 1 deletion lib/govuk_app_config/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module GovukAppConfig
VERSION = "2.2.2".freeze
VERSION = "2.3.0".freeze
end
27 changes: 0 additions & 27 deletions spec/lib/govuk_healthcheck/sidekiq_queue_size_check_spec.rb

This file was deleted.

0 comments on commit 2e17ceb

Please sign in to comment.