From 4b8626b126dc1b29d186646f8a68759136c4f9dc Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Thu, 10 Aug 2023 15:33:21 +0200 Subject: [PATCH] fix(after_party): this job timouts in prod. Drop it for now. --- ...0230721145042_purge_invalid_geo_areas.rake | 22 ------------------- 1 file changed, 22 deletions(-) delete mode 100644 lib/tasks/deployment/20230721145042_purge_invalid_geo_areas.rake diff --git a/lib/tasks/deployment/20230721145042_purge_invalid_geo_areas.rake b/lib/tasks/deployment/20230721145042_purge_invalid_geo_areas.rake deleted file mode 100644 index 0ab8d4730..000000000 --- a/lib/tasks/deployment/20230721145042_purge_invalid_geo_areas.rake +++ /dev/null @@ -1,22 +0,0 @@ -namespace :after_party do - desc 'Deployment task: purge_invalid_geo_areas' - task purge_invalid_geo_areas: :environment do - puts "Running deploy task 'purge_invalid_geo_areas'" - - geo_areas = GeoArea.selections_utilisateur - progress = ProgressReport.new(geo_areas.count) - - geo_areas.find_each do |geo_area| - if !geo_area.valid? - geo_area.destroy - end - progress.inc - end - progress.finish - - # Update task as completed. If you remove the line below, the task will - # run with every deploy (or every time you call after_party:run). - AfterParty::TaskRecord - .create version: AfterParty::TaskRecorder.new(__FILE__).timestamp - end -end