I am running sidekiq jobs on a few models (ARs). Sometimes, sporadically, I am getting exceptions of nil models. That is, the models (which can be very old in the DB) are nil. I have IF conditions before the job to allow only when NOT nil, the code passes, but sometimes it gets the nil somewhere in the code.
I do not have reaping policy (using the default) in the database.yml, thus I am not sure why this is happening.
When I am retrying the jobs (even after a few seconds) - they succeed.
What can cause this break inside the job???
Thanks