drush_backend_invoke() was deprecated in Drush 4 and has been removed from Drush 5 - we need to switch to the modern equivalent, drush_invoke_process(). Or, in case people are still on Drush 3, detect the drush version and pick the appropriate function...

CommentFileSizeAuthor
#1 drush_invoke_process-1413350-1.patch824 bytesmikeryan

Comments

mikeryan’s picture

Status: Active » Needs work
StatusFileSize
new824 bytes

First shot, doesn't really work - it seems like it's not really going into a subprocess, because after the initial run everything else runs out of memory immediately. Moshe, any thoughts?

moshe weitzman’s picture

with --verbose you can see the commands that get executed. you should see another drush call.

i would go with drush_do_command_redispatch() which eventually calls into drush_invoke_process().

mikeryan’s picture

Status: Needs work » Fixed

Oh, I just needed to array() the args arguments...

Status: Fixed » Closed (fixed)

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