From ac4fc43972d8026ec0e83a36eccd14639725ef32 Mon Sep 17 00:00:00 2001 From: James Rose Date: Mon, 24 Oct 2022 11:33:01 +0100 Subject: [PATCH] Adjust data export tasks to use new jobs --- lib/tasks/data_export.rake | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/tasks/data_export.rake b/lib/tasks/data_export.rake index 4859103cf..7c5f58b01 100644 --- a/lib/tasks/data_export.rake +++ b/lib/tasks/data_export.rake @@ -1,9 +1,13 @@ namespace :core do + desc "Export data CSVs for import into Central Data System (CDS)" + task data_export_csv: :environment do |_task, _args| + DataExportCsvJob.perform_later(format, full_update) + end + desc "Export data XMLs for import into Central Data System (CDS)" - task :data_export, %i[format full_update] => :environment do |_task, args| - format = args[:format] + task :data_export_xml, %i[full_update] => :environment do |_task, args| full_update = args[:full_update].present? && args[:full_update] == "true" - DataExportJob.perform_later(format, full_update) + DataExportXmlJob.perform_later(full_update:) end end