@@ -541,7 +541,7 @@ class JobWithTags
541541 @cfg . redis do |conn |
542542 conn . multi do |transaction |
543543 transaction . sadd ( "processes" , [ odata [ "key" ] ] )
544- transaction . hmset ( odata [ "key" ] , "info" , Sidekiq . dump_json ( odata ) , "busy" , 10 , "beat" , time )
544+ transaction . hset ( odata [ "key" ] , "info" , Sidekiq . dump_json ( odata ) , "busy" , 10 , "beat" , time )
545545 transaction . sadd ( "processes" , [ "fake:pid" ] )
546546 end
547547 end
@@ -581,7 +581,7 @@ class JobWithTags
581581 @cfg . redis do |conn |
582582 conn . multi do |transaction |
583583 transaction . sadd ( "processes" , [ odata [ "key" ] ] )
584- transaction . hmset ( odata [ "key" ] , "info" , Sidekiq . dump_json ( odata ) , "busy" , 10 , "beat" , time )
584+ transaction . hset ( odata [ "key" ] , "info" , Sidekiq . dump_json ( odata ) , "busy" , 10 , "beat" , time )
585585 end
586586 end
587587
@@ -619,13 +619,13 @@ class JobWithTags
619619 pdata = { "pid" => $$, "hostname" => hn , "started_at" => Time . now . to_i }
620620 @cfg . redis do |conn |
621621 conn . sadd ( "processes" , [ key ] )
622- conn . hmset ( key , "info" , Sidekiq . dump_json ( pdata ) , "busy" , 0 , "beat" , Time . now . to_f )
622+ conn . hset ( key , "info" , Sidekiq . dump_json ( pdata ) , "busy" , 0 , "beat" , Time . now . to_f )
623623 end
624624
625625 s = "#{ key } :work"
626626 data = Sidekiq . dump_json ( { "payload" => "{}" , "queue" => "default" , "run_at" => Time . now . to_i } )
627627 @cfg . redis do |c |
628- c . hmset ( s , "1234" , data )
628+ c . hset ( s , "1234" , data )
629629 end
630630
631631 w . each do |p , x , y |
@@ -640,8 +640,8 @@ class JobWithTags
640640 data = Sidekiq . dump_json ( { "payload" => { } , "queue" => "default" , "run_at" => ( Time . now . to_i - 2 * 60 * 60 ) } )
641641 @cfg . redis do |c |
642642 c . multi do |transaction |
643- transaction . hmset ( s , "5678" , data )
644- transaction . hmset ( "b#{ s } " , "5678" , data )
643+ transaction . hset ( s , "5678" , data )
644+ transaction . hset ( "b#{ s } " , "5678" , data )
645645 end
646646 end
647647
@@ -671,7 +671,7 @@ class JobWithTags
671671 key = "#{ data [ "hostname" ] } :#{ data [ "pid" ] } "
672672 @cfg . redis do |conn |
673673 conn . sadd ( "processes" , [ key ] )
674- conn . hmset ( key , "info" , Sidekiq . dump_json ( data ) , "busy" , 0 , "beat" , Time . now . to_f )
674+ conn . hset ( key , "info" , Sidekiq . dump_json ( data ) , "busy" , 0 , "beat" , Time . now . to_f )
675675 end
676676 ps = Sidekiq ::ProcessSet . new
677677 assert_equal 1 , ps . size
0 commit comments