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

  • mikeryan committed 37d1e69 on 7.x-2.x
    Issue #2465387 by mikeryan: Fix handling of --stop option on migrate-...
mikeryan’s picture

Status: Active » Fixed

Similar 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).

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

mikeryan’s picture

Issue tags: +Migrate 2.8