Skip to content

Commit

Permalink
Warn about upcoming removal, #5076
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Dec 6, 2021
1 parent 2890f81 commit 6877e7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changes.md
Expand Up @@ -5,6 +5,7 @@
HEAD
---------

- Note that Delayed Extensions will be removed in Sidekiq 7.0 [#5076]
- Add `perform_{inline,sync}` in Sidekiq::Job to run a job synchronously [#5061, hasan-ally]
```ruby
SomeJob.perform_async(args...)
Expand Down
2 changes: 2 additions & 0 deletions lib/sidekiq/delay.rb
Expand Up @@ -3,6 +3,8 @@
module Sidekiq
module Extensions
def self.enable_delay!
Sidekiq.logger.error "Sidekiq's Delayed Extensions will be removed in Sidekiq 7.0. #{caller(1..1).first}"

if defined?(::ActiveSupport)
require "sidekiq/extensions/active_record"
require "sidekiq/extensions/action_mailer"
Expand Down

0 comments on commit 6877e7c

Please sign in to comment.