when feeds are queued via cli, process them sequentially #1696
+207
−7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
When feeds are queued via CLI, process them sequentially, so that all batches from the first feed are processed before the second feed is started, and so on.
Testing steps:
feed1) that imports assets into the volume (example data below)feed2) that imports entries into the section; the entries rely on assets already having been imported (example data below)public int $batchSize = 1;insrc/queue/jobs/FeedImport.phpcraft feed-me/feeds/queue 1,2command (where1and2correspond actual IDs of thefeed1andfeed2respectively)The outcome should be that all the assets are processed first before we move onto the entries.
feed1example data:feed2example data:Related issues
#1695