2014-06-18 21:40:22 +01:00
|
|
|
module BuildLists
|
2016-05-28 19:21:02 +01:00
|
|
|
class CreateContainerJob < BaseActiveRecordJob
|
|
|
|
include Sidekiq::Worker
|
|
|
|
sidekiq_options :queue => :middle
|
2014-06-18 21:40:22 +01:00
|
|
|
|
2016-05-28 19:21:02 +01:00
|
|
|
def perform_with_ar_connection(build_list_id)
|
2014-06-19 20:35:53 +01:00
|
|
|
build_list = BuildList.find(build_list_id)
|
|
|
|
container = AbfWorkerService::Container.new(build_list)
|
|
|
|
container.create!
|
2014-06-18 21:40:22 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|