Skip to content
This repository has been archived by the owner on Apr 1, 2023. It is now read-only.

Commit

Permalink
Fixed different format of arguments - fixes #44
Browse files Browse the repository at this point in the history
  • Loading branch information
Pramod committed Apr 26, 2016
1 parent ac07d84 commit 8e2b79f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/sidekiq-status/client_middleware.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ def initialize(opts = {})
# @param [String] queue the queue's name
# @param [ConnectionPool] redis_pool optional redis connection pool
def call(worker_class, msg, queue, redis_pool=nil)
job = Sidekiq::Job.new(msg, queue)
initial_metadata = {
jid: msg['jid'],
status: :queued,
worker: worker_class,
args: msg['args'].to_a.empty? ? nil : msg['args'].to_json
args: job.display_args.to_a.empty? ? nil : job.display_args.to_json
}
store_for_id msg['jid'], initial_metadata, @expiration, redis_pool
yield
Expand Down

0 comments on commit 8e2b79f

Please sign in to comment.