lib/sidekiq/belt/pro/files.rb in sidekiq-belt-0.3.7 vs lib/sidekiq/belt/pro/files.rb in sidekiq-belt-1.0.0
- old
+ new
@@ -1,10 +1,11 @@
# frozen_string_literal: true
require "sidekiq"
require_relative "failed_batch_remove"
+require_relative "force_batch_callback"
module Sidekiq
module Belt
module Pro
module Files
@@ -12,9 +13,10 @@
return unless Sidekiq.pro?
all = options.include?(:all)
Sidekiq::Belt::Pro::FailedBatchRemove.use! if all || options.include?(:failed_batch_remove)
+ Sidekiq::Belt::Pro::ForceBatchCallback.use! if all || options.include?(:force_batch_callback)
true
end
end
end