spec/support/test_workers.rb in sidekiq-batching-0.0.3 vs spec/support/test_workers.rb in sidekiq-batching-0.0.4
- old
+ new
@@ -28,6 +28,15 @@
sidekiq_options queue: :batched_both, batch_flush_interval: 3600, batch_size: 3
def perform(foo)
end
-end
\ No newline at end of file
+end
+
+class BatchedUniqueArgsWorker
+ include Sidekiq::Worker
+
+ sidekiq_options queue: :batched_unique_args, batch_size: 3, batch_unique: true
+
+ def perform(foo)
+ end
+end