Prod build process
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
module AutomationService
|
||||
class BatchEmployerUpdate
|
||||
|
||||
def initialize(pl_plan_keys = nil)
|
||||
def initialize(pl_plan_keys = nil, full_sync = false)
|
||||
@pl_plan_keys = pl_plan_keys
|
||||
@full_sync = full_sync
|
||||
end
|
||||
|
||||
def call
|
||||
@@ -16,7 +17,7 @@ module AutomationService
|
||||
employer_update_futures = employer_plan_headers.map do |employer_plan_header|
|
||||
Concurrent::Future.execute do
|
||||
ActiveRecord::Base.connection_pool.with_connection do
|
||||
UpdateEmployerJob.perform_later(employer_plan_header: employer_plan_header)
|
||||
UpdateEmployerJob.perform_later(employer_plan_header: employer_plan_header, full_sync: @full_sync)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user