Module: Que::Locks::JSONExtensions

Defined in:
lib/que/locks/json_extensions.rb

Overview

For comparing job args, the JSON serialization of them is used This patches Que to use a stable json serialization that is independent of the insertion order of keys into hash arguments

Instance Method Summary collapse

Instance Method Details

#serialize_json(object) ⇒ Object



6
7
8
# File 'lib/que/locks/json_extensions.rb', line 6

def serialize_json(object)
  JSON.neat_generate(object, sort: true)
end