mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Update singletons
This commit is contained in:
parent
c9b40def98
commit
58db628a82
1 changed files with 3 additions and 3 deletions
|
@ -57,9 +57,6 @@ module Sidekiq
|
|||
|
||||
private
|
||||
|
||||
# Singleton classes are not clonable.
|
||||
SINGLETON_CLASSES = [ NilClass, TrueClass, FalseClass, Numeric, Symbol ].freeze
|
||||
|
||||
def stats(worker, msg, queue)
|
||||
redis do |conn|
|
||||
conn.multi do
|
||||
|
@ -93,6 +90,9 @@ module Sidekiq
|
|||
end
|
||||
end
|
||||
|
||||
# Singleton classes are not clonable.
|
||||
SINGLETON_CLASSES = [ NilClass, TrueClass, FalseClass, Symbol, Fixnum, Float ].freeze
|
||||
|
||||
# Clone the arguments passed to the worker so that if
|
||||
# the message fails, what is pushed back onto Redis hasn't
|
||||
# been mutated by the worker.
|
||||
|
|
Loading…
Add table
Reference in a new issue