Skip to content

drush_backend_batch_process() and &$context #5009

@ultimike

Description

@ultimike

I have a batch that runs fine via a form - with the $context being populated and $context['results'] available to my "finished" callback as expected.

I've created a custom Drush command for this batch, but when I run it with drush_backend_batch_process();, the $results array isn't populated as I expect in my "finished" callback. Everything else is working fine - the custom Drush command runs the batch with the expected results, other than the $results array being provided to the "finished" callback.

Is this a known limitation of drush_backend_batch_process(); or am I just missing something?

thanks,
-mike

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions