Skip to content

fix: terminate failed media downloads after retry threshold - #216

Open
Dennis Garding (DennisGarding) wants to merge 8 commits into
trunkfrom
18902/fix-media-download-from-magento
Open

fix: terminate failed media downloads after retry threshold#216
Dennis Garding (DennisGarding) wants to merge 8 commits into
trunkfrom
18902/fix-media-download-from-magento

Conversation

@DennisGarding

Copy link
Copy Markdown
Contributor

Closes: shopware/shopware#18902

1. Why is this change necessary?

When a media file cannot be fetched from Magento, the Migration Assistant retries the file without marking it as processed or failed. This causes the downloading progress to exceed the total number of files and prevents the migration from reaching a terminal state.

2. What does this change do, exactly?

Failed media downloads are marked as failed once the configured retry threshold is reached. This ensures that:

  • each media file reaches a terminal state;
  • failed files are not re-enqueued indefinitely;
  • the download progress cannot grow beyond the total file count;
  • migrations can complete even when individual media sources are unreachable.

Successful downloads keep their existing processing behaviour.

Comment thread src/Migration/Media/Processor/HttpDownloadServiceBase.php
Comment thread src/Profile/Shopware6/Converter/LanguageConverter.php Outdated
Comment thread phpstan.neon.dist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Migration][Magento] Unreachable media source: Downloading step does not converge, migration cannot reach Done

3 participants