- Issue created by @benjifisher
- πΊπΈUnited States benjifisher Boston area
The most useful migration source plugins for same-site migrations are
content_entity
andd8_config
. Currently, both are defined in themigrate_drupal
module.π Move content_entity source plugin to migrate module Active moved the
content_entity
plugin to themigrate
module. Starting with Drupal 11.2, that plugin should be available without enablingmigrate_drupal
. We plan to do the same with thed8_config
plugin, and probably rename it, in π Move the d8_config source plugin to the migrate module Active . - πΊπΈUnited States swirt Florida
This idea is very interesting for me. Leveraging the flexibility of cron this could be very useful to run ongoing migrations. I can immediately see two useful variations of this:
- processOne() calls a full migration directly - so it becomes a way to fire a migration, however if run through the UI would not actually behave as a batch and would be at risk for timeouts.
- processOne() calls a migration but passes it the item as an id so it just runs a migration for that one item. This would be less prone to timeouts if run in the UI but would be much less performant as the it still does all the initial bootstrapping of the migration which for every item would look for all the items covered by the migration. This could be useful though to process items that were done as kind of an incremental migration (example: migrating any nodes that have a workflow state of "ready for migration"
- πΊπΈUnited States benjifisher Boston area
The
drush migrate:import
command accepts a--limit
option.The implementation, unfortunately, is rather complicated. I think the key parts are in https://github.com/drush-ops/drush/blob/13.x/src/Drupal/Migrate/MigrateE..., which extends
Drupal\migrate\MigrateExecutable
.I think an MVP that does not include the
limit
option would still be useful. Give some sort of warning that large migrations can cause problems when run from the UI.