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.
Follow-up to #1800148: Unknown option: --rollback during migrate-import via Drush
drush help for migrate-import shows --stop as an option, but also complains that it isn't one.
$ drush help migrate-import
Perform one or more migration processes
...
Options:
...
--stop Stop specified migration(s) if applicable.
...
$ drush mi Article --limit="10 items" --rollback --stop
Unknown options: --limit, --rollback, --stop. See `drush help migrate-stop` for available options. To suppress this error, add [error]
the option --strict=0.
Unknown option: --stop. See `drush help migrate-rollback` for available options. To suppress this error, add the option [error]
--strict=0.
drush version 6.6-dev
Comments
Comment #2
mikeryanSimilar to the --rollback issue, --stop was being passed to the migrate-stop command. Changed to directly call the stopProcess() API instead of spawning the command, and while I was at it gave it a little wait loop because stop operates asynchronously (without waiting, you'd stand a good chance of the rollback failing because the process was still running).
Comment #4
mikeryan