How to Safely Change the Argument Signature of a Sidekiq Job
03-Feb-2022 2415
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 #Safely #Change #Argument #Signature #Sidekiq #sidekiq https://rubyonrails.ba/link/how-to-safely-change-the-argument-signature-of-a-sidekiq-job