From 3d747844d827c5b87da9f52f7843bc0ee61a3e12 Mon Sep 17 00:00:00 2001 From: Pramod Date: Wed, 23 Dec 2015 17:47:40 +0530 Subject: [PATCH] ClientMiddleware updates - Worker arguments converted to JSON before saving into redis status hash to aviod Redis::CommandError --- lib/sidekiq-status/client_middleware.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sidekiq-status/client_middleware.rb b/lib/sidekiq-status/client_middleware.rb index a07f95b..30e3f88 100644 --- a/lib/sidekiq-status/client_middleware.rb +++ b/lib/sidekiq-status/client_middleware.rb @@ -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