How to Safely Change the Argument Signature of a Sidekiq Job

03-Feb-2022 2377
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.
Use coupon code:

RUBYONRAILS

to get 30% discount on our bundle!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these highly-rated books offer thousands of essential questions and answers to boost your interview success. Buy our 'Ultimate Job Interview Preparation eBook Bundle' featuring 2200+ questions across multiple languages. Ultimate Job Interview Preparation eBook Bundle