BackgroundJob triggered multiple times on save ( Rails 5, Sidekiq)
问题 I am handling the upload of PDFs' files on Cloundinary through a background jobs. I enqueue them from an after_save callback. The dilemna is that for one update my background job get triggered multiples times. To counter this flaw, I tried to implement a method using around_perform , to ensure that my job would be triggered only one time. But it actually did not work. I was wondering if any of you know how to handle those unwanted calls to the job Here is my code My after_save callback The