You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use gem sidekiq-marshal. It overrides the methods Sidekiq.load_json and Sidekiq.load_json in order to encode tasks in the format of the ruby Marshal.dump.
Using JSON.parse instead of Sidekiq.load_json here break compatibility with other Sidekiq extensions.
irb(main):001:0> ds=Sidekiq::DeadSet.new=>#<Sidekiq::DeadSet:0x007ff0fa7edf90 @name="dead", @_size=2306>irb(main):002:0> ds.size=>2306irb(main):003:0> ds.clearJSON::ParserError: 784: unexpectedtokenat'{�I"class�:�ETI"SkBuyData�;'from/skipped/ruby/2.2.0/gems/json-1.8.6/lib/json/common.rb:155:in`parse' from /skipped/ruby/2.2.0/gems/json-1.8.6/lib/json/common.rb:155:in `parse' from /skipped/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.18/lib/sidekiq_unique_jobs/sidekiq_unique_ext.rb:145:in `delete_by_value_ext'from/skipped/ruby/2.2.0/gems/sidekiq-4.2.9/lib/sidekiq/api.rb:400:in`delete' from /skipped/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.18/lib/sidekiq_unique_jobs/sidekiq_unique_ext.rb:17:in `delete_ext' from /skipped/ruby/2.2.0/gems/sidekiq-4.2.9/lib/sidekiq/api.rb:527:in `block in each'from/skipped/ruby/2.2.0/gems/sidekiq-4.2.9/lib/sidekiq/api.rb:526:in`each' from /skipped/ruby/2.2.0/gems/sidekiq-4.2.9/lib/sidekiq/api.rb:526:in `each' from /skipped/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.18/lib/sidekiq_unique_jobs/sidekiq_unique_ext.rb:140:in `clear_ext'from(skippedfrom/skipped/ruby/2.2.0/gems/railties-4.2.7.1/lib/rails/commands/console.rb:110:in`start' from /skipped/ruby/2.2.0/gems/railties-4.2.7.1/lib/rails/commands/console.rb:9:in `start' from /skipped/ruby/2.2.0/gems/railties-4.2.7.1/lib/rails/commands/commands_tasks.rb:68:in `console'from/skipped/ruby/2.2.0/gems/railties-4.2.7.1/lib/rails/commands/commands_tasks.rb:39:in`run_command!' from /skipped/ruby/2.2.0/gems/railties-4.2.7.1/lib/rails/commands.rb:17:in `<top(required)>' from bin/rails:4:in `require'frombin/rails:4:in `<main>'
The text was updated successfully, but these errors were encountered:
We use gem sidekiq-marshal. It overrides the methods Sidekiq.load_json and Sidekiq.load_json in order to encode tasks in the format of the ruby Marshal.dump.
Using JSON.parse instead of Sidekiq.load_json here break compatibility with other Sidekiq extensions.
The text was updated successfully, but these errors were encountered: