Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
We running migrations if there's not enough memory to compete the migration it'll not complete and you won't know because the source count is not displayed.
Proposed resolution
Run migrations in batches until they are complete.
Remaining tasks
User interface changes
None
API changes
None
Data model changes
None
Comment | File | Size | Author |
---|---|---|---|
#2 | 2829238-2.patch | 3.14 KB | alexpott |
Comments
Comment #2
alexpottComment #3
dawehnerThe original code in
MigrateExecuteable
usesThe code example here would directly stop for migrations, which cannot be counted. I guess though at least generator based once would work though, see #2684567: Requiring a migration w/ a source plugin using a generator fatals.
Maybe calling out to valid would be everything which is needed.
Comment #4
alexpottMaybe it is best to use allRowsProcessed() because that's how migrate checks is something has run...
But that does:
Which is why I went the way I did.
Comment #5
benjy CreditAttribution: benjy commentedI tested this in place of my other patch which was just setting memory to -1 and it blows up in our CI environment, not sure why but something changes.
Also noticed that the output is much more verbose, I used to get one output at the end of the migration, now i'm getting hundreds of lines of output:
Comment #6
benjy CreditAttribution: benjy commentedLooks like something with this patches causes it to get stuck in an infinite loop for me. Could be because I have a few failed rows, not looked any further.
Comment #7
Eli-TWould be good to know what leads to the infinite loops in Benjy's comment in #6
Comment #8
benjy CreditAttribution: benjy commentedBetter status.
Comment #9
Eli-TMarking as Won't Fix after deprecating this module in favour of Migrate Run