Currently using migrate tools to work on a rather complex migration. Profiles come in, and some of the data creates paragraphs, and some of those paragraphs go onwards to generate group content. Deletion is just as complex. Remove a node, remove paragraphs, remove paragraphs, remove group content.
With 1059 records (a sample of the full amount we have to migrate) whenever I run migrate currently I get a 504 bad gateway response. The rollback runs partially through the records to remove, but ultimately times out. Updating this to using a batch process would be helpful.
Issue fork migrate_tools-3014353
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
kiseleva.t commentedImplemented batch for rollback (for version 8.x-5.0), for now, made it configurable by a checkbox in "Additional execution options".
Comment #3
vasikeThere 2 re-rolls for this ... one for 5.x and the other for 6.0.x
it's @kiseleva.t code ... nothing new added by me.
Comment #4
anybodyUpdating to latest version, where development mainly happens. #3 already contains a patch against that version.
Comment #5
acidaniel commentedIt is possible to use drush to pass any `--batch_size` option, I can't see this is something defined here Incorporating that option will be AMAZING!
Comment #6
heddnCan we just always use a batch for rollback? I can't think of a reason to use the old way when batch is better.
Comment #7
anybodyTotally agree with #6!
@kiseleva.t was there a technical reason for the checkbox / option? Or just to let the user decide and make the switch more soft?
Comment #9
vasikei created a MR from the previous patches ... replacing the rollback with batch rollback.
Maybe some code could be cleanup ... so anyone that wants to. help, please update the MR ...
Comment #10
jaypanI've confirmed this is working, and it is actually essential for me as my system times out and rollbacks are impossible when they are not done through a batch. I'm marking this as major, as this bug prevents module functionality for me.
Comment #11
ovanes commentedI have rerolled the patch for version 6.0.x
Comment #12
ygstnd commentedI updated the patch added in comment #11
Deleted the not needed "sprintf('%s::%s', static::class, 'batchProcessImport')" which was breaking Migration Batch execution
Comment #13
heddnThis could use a re-base and review if everything is in the MR.