Skip to content

Commit

Permalink
Adapt PJ migration to S3 instead of open stack
Browse files Browse the repository at this point in the history
  • Loading branch information
maatinito committed Oct 25, 2023
1 parent a2ae44f commit 6f950ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/jobs/cron/pjs_migration_cron_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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) } }
Expand Down

0 comments on commit 6f950ea

Please sign in to comment.