How to Safely Change the Argument Signature of a Sidekiq Job

So the first thing I did was follow the link, which told me I was doing some things wrong concerning best practices. The second thing I did was throw Sidekiq.strict_args! into my Sidekiq initializer, to start raising errors instead of warnings.These warnings were pointing out that one of my jobs, RequestLogWorker, was not following best practices. It accepted 2 hashes, a request hash and a response hash, which we used to log API requests and responses to the database, respectively.
How to Safely Change the Argument Signature of a Sidekiq Job #ruby #rubydeveloper #rubyonrails #sidekiq https://rubyonrails.ba/single/how-to-safely-change-the-argument-signature-of-a-sidekiq-job

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles