Add search deploy date options

This commit is contained in:
KMY 2023-09-16 10:53:09 +09:00
parent 173b9f4fd7
commit 0ffd8acacd
4 changed files with 12 additions and 3 deletions

View file

@ -3,10 +3,12 @@
class Importer::BaseImporter
# @param [Integer] batch_size
# @param [Concurrent::ThreadPoolExecutor] executor
def initialize(batch_size:, executor:, full: true)
def initialize(batch_size:, executor:, full: true, from: nil, to: nil)
@batch_size = batch_size
@executor = executor
@full = full
@from = from.to_date if from.present?
@to = to.to_date if to.present?
@wait_for = Concurrent::Set.new
end