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

Commit

Permalink
ClientMiddleware updates
Browse files Browse the repository at this point in the history
- Worker arguments converted to JSON before saving
  into redis status hash to aviod Redis::CommandError
  • Loading branch information
Pramod committed Dec 23, 2015
1 parent 7347940 commit 3d74784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sidekiq-status/client_middleware.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def call(worker_class, msg, queue, redis_pool=nil)
jid: msg['jid'],
status: :queued,
worker: worker_class,
args: msg['args'].to_a.empty? ? nil : msg['args']
args: msg['args'].to_a.empty? ? nil : msg['args'].to_json
}
store_for_id msg['jid'], initial_metadata, @expiration, redis_pool
yield
Expand Down

0 comments on commit 3d74784

Please sign in to comment.