From 6f950ea27447969e69027c4a36655ec908e28903 Mon Sep 17 00:00:00 2001 From: Christian Lautier <15379878+maatinito@users.noreply.github.com> Date: Wed, 25 Oct 2023 08:35:35 -1000 Subject: [PATCH] Adapt PJ migration to S3 instead of open stack --- app/jobs/cron/pjs_migration_cron_job.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/jobs/cron/pjs_migration_cron_job.rb b/app/jobs/cron/pjs_migration_cron_job.rb index afe3f543ce4..fa86d04cc4e 100644 --- a/app/jobs/cron/pjs_migration_cron_job.rb +++ b/app/jobs/cron/pjs_migration_cron_job.rb @@ -8,6 +8,7 @@ def perform(*args) blobs = ActiveStorage::Blob .where.not("key LIKE '%/%'") + .where(service_name: "s3") .limit(200_000) blobs.in_batches { |batch| batch.ids.each { |id| PjsMigrationJob.perform_later(id) } }