PhoenixKit.Modules.Shop.Workers.ImageMigrationWorker (phoenix_kit v1.7.63)
Copy Markdown View SourceOban worker for migrating product images from external URLs to Storage module.
Processes a single product per job, downloading all legacy images and updating the product with Storage UUIDs.
Job Arguments
"product_uuid"- The product UUID to migrate"user_uuid"- The user UUID for ownership of stored files
Queue
Uses the shop_imports queue with max 3 attempts.
Usage
# Queue a single product for migration
%{product_uuid: product_uuid, user_uuid: user_uuid}
|> ImageMigrationWorker.new()
|> Oban.insert()