diff --git a/Changes.md b/Changes.md index 4105d116..12881e30 100644 --- a/Changes.md +++ b/Changes.md @@ -27,6 +27,7 @@ Please see [Upgrading.md](Upgrading.md) for more comprehensive upgrade notes. - Remove deprecated support for the old Sidekiq::Worker#retries\_exhausted method. - Remove usage of the term 'Worker' in the UI for clarity. Users would call both threads and processes 'workers'. Instead, use "Thread", "Process" or "Job". +- Add new 💣 alias for #clear in API. 2.17.7 ----------- diff --git a/lib/sidekiq/api.rb b/lib/sidekiq/api.rb index afd66e5c..2ecd83ad 100644 --- a/lib/sidekiq/api.rb +++ b/lib/sidekiq/api.rb @@ -1,3 +1,4 @@ +# encoding: utf-8 require 'sidekiq' module Sidekiq @@ -155,6 +156,7 @@ module Sidekiq end end end + alias_method :💣, :clear end ## @@ -282,6 +284,7 @@ module Sidekiq conn.del(name) end end + alias_method :💣, :clear end class JobSet < SortedSet diff --git a/lib/sidekiq/fetch.rb b/lib/sidekiq/fetch.rb index fc29da59..6543b8b5 100644 --- a/lib/sidekiq/fetch.rb +++ b/lib/sidekiq/fetch.rb @@ -140,10 +140,10 @@ module Sidekiq end end - # Creating the Redis#blpop command takes into account any - # configured queue weights. By default Redis#blpop returns + # Creating the Redis#brpop command takes into account any + # configured queue weights. By default Redis#brpop returns # data from the first queue that has pending elements. We - # recreate the queue command each time we invoke Redis#blpop + # recreate the queue command each time we invoke Redis#brpop # to honor weights and avoid queue starvation. def queues_cmd queues = @strictly_ordered_queues ? @unique_queues.dup : @queues.shuffle.uniq