Sha256: 11347ff4a0655d9192f60f5989335b40a1da9d35cb7794a204a148c9502d1450
Contents?: true
Size: 511 Bytes
Versions: 2
Compression:
Stored size: 511 Bytes
Contents
class WorkController < ApplicationController def duplicate_simple 4.times { SimpleWorker.perform_async(unique_argument) } redirect_to '/sidekiq' end def duplicate_slow 4.times { SlowUntilExecutingWorker.perform_async(unique_argument) } redirect_to '/sidekiq' end def duplicate_nested 4.times { SpawnSimpleWorker.perform_async(unique_argument) } redirect_to '/sidekiq' end def unique_argument params[:id] end def safe_params params.permit!(:id) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sidekiq-unique-jobs-5.0.1 | rails_example/app/controllers/work_controller.rb |
sidekiq-unique-jobs-5.0.0 | rails_example/app/controllers/work_controller.rb |