app/jobs/sample_tv_show_job.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
class SampleTvShowJob < ActiveJob::Base
  sidekiq_options retry: false

  def perform(tv_show)
    ActiveRecord::Base.connection_pool.with_connection do
      tv_show.sample
    end
  end
end