Skip to content

Commit

Permalink
I-3773: Fixed drush_backend_batch_process() not clearing batch_get(). (
Browse files Browse the repository at this point in the history
…drush-ops#4886)

Co-authored-by: Francesco Placella <plach@183211.no-reply.drupal.org>
  • Loading branch information
2 people authored and damienmckenna committed Nov 5, 2021
1 parent 91565cd commit 33ded36
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions includes/batch.inc
Expand Up @@ -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;
}

Expand Down

0 comments on commit 33ded36

Please sign in to comment.