diff --git a/includes/batch.inc b/includes/batch.inc index e55c1944cd..bad6bd1395 100644 --- a/includes/batch.inc +++ b/includes/batch.inc @@ -159,6 +159,11 @@ function _drush_backend_batch_process($command = 'batch-process', $args = [], $o } } + // An attempt to clear the batch is performed in "_drush_batch_finished", + // however when that is run in a separate process, static cache changes need + // to be replayed. + $batch = NULL; + return $result; }