Add importing remote post
This commit is contained in:
parent
5fb6bce744
commit
ddce464d70
4 changed files with 17 additions and 4 deletions
|
@ -3,9 +3,10 @@
|
|||
class Importer::BaseImporter
|
||||
# @param [Integer] batch_size
|
||||
# @param [Concurrent::ThreadPoolExecutor] executor
|
||||
def initialize(batch_size:, executor:)
|
||||
def initialize(batch_size:, executor:, full: true)
|
||||
@batch_size = batch_size
|
||||
@executor = executor
|
||||
@full = full
|
||||
@wait_for = Concurrent::Set.new
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue