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
…#4886) (#4893)

Co-authored-by: Francesco Placella <plach@183211.no-reply.drupal.org>

Co-authored-by: plach <plach79@users.noreply.github.com>
Co-authored-by: Francesco Placella <plach@183211.no-reply.drupal.org>
  • Loading branch information
3 people committed Nov 6, 2021
1 parent 91565cd commit c69aacd
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 c69aacd

Please sign in to comment.