module Penthouse module Sidekiq module Middleware class Server def call(worker_class, item, queue) Penthouse.switch(item['tenant']) do yield end end end end end end