DEV: Allow custom value when pausing sidekiq to aid in debugging.

Sometimes, it is useful to know what caused Sidekiq to be paused.
This commit is contained in:
Guo Xiang Tan
2019-02-19 10:55:53 +08:00
parent c29076152d
commit bf21ebaecc
3 changed files with 10 additions and 7 deletions

View File

@@ -17,7 +17,7 @@ RSpec.describe "Pausing/Unpausing Sidekiq", type: :multisite do
expect(Sidekiq.paused?).to eq(false)
test_multisite_connection('second') do
Sidekiq.pause!
Sidekiq.pause!("test")
expect(Sidekiq.paused?).to eq(true)
end