PhoenixKit.Modules.Shop.Workers.ImageMigrationWorker (phoenix_kit v1.7.38)
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_id"- The product ID to migrate"user_id"- The user ID for ownership of stored files
Queue
Uses the shop_imports queue with max 3 attempts.
Usage
# Queue a single product for migration
%{product_id: product_id, user_id: user_id}
|> ImageMigrationWorker.new()
|> Oban.insert()