mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Warn when using the Testing API outside of the test env, fixes #3384
This commit is contained in:
parent
e6f59f6b40
commit
9e7cc9afda
1 changed files with 6 additions and 0 deletions
|
@ -316,3 +316,9 @@ module Sidekiq
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
if defined?(::Rails) && !Rails.env.test?
|
||||
puts("**************************************************")
|
||||
puts("⛔️ WARNING: Sidekiq testing API enabled, but this is not the test environment. Your jobs will not go to Redis.")
|
||||
puts("**************************************************")
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue