Add search deploy date options
This commit is contained in:
parent
173b9f4fd7
commit
0ffd8acacd
4 changed files with 12 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue