1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
mperham--sidekiq/lib/sidekiq/worker_compatibility_alias.rb
Abdelkader Boudih 936846ad70
Remove deprecated worker reference. (#5565)
* Remove deprecated worker reference.

* fix build
2022-10-08 15:36:53 -07:00

13 lines
547 B
Ruby

# frozen_string_literal: true
module Sidekiq
# Sidekiq::Job is a new alias for Sidekiq::Worker as of Sidekiq 6.3.0.
# Use `include Sidekiq::Job` rather than `include Sidekiq::Worker`.
#
# The term "worker" is too generic and overly confusing, used in several
# different contexts meaning different things. Many people call a Sidekiq
# process a "worker". Some people call the thread that executes jobs a
# "worker". This change brings Sidekiq closer to ActiveJob where your job
# classes extend ApplicationJob.
Worker = Job
end