@@ -52,13 +52,12 @@ class DrushBatchContext extends ArrayObject {
52
52
* Process a Drupal batch by spawning multiple Drush processes.
53
53
*
54
54
* This function will include the correct batch engine for the current
55
- * major version of Drupal, and will make use of the drush_backend_invoke
56
- * system to spawn multiple worker threads to handle the processing of
57
- * the current batch, while keeping track of available memory .
55
+ * major version of Drupal, and will make use of the site-process
56
+ * library to spawn multiple worker threads to handle the processing of
57
+ * the current batch.
58
58
*
59
59
* The batch system will process as many batch sets as possible until
60
- * the entire batch has been completed or half of the available memory
61
- * has been used.
60
+ * the entire batch has been completed.
62
61
*
63
62
* This function is a drop in replacement for the existing batch_process()
64
63
* function of Drupal.
@@ -279,14 +278,6 @@ function _drush_batch_worker() {
279
278
// At this point, either $current_set contains operations that need to be
280
279
// processed or all sets have been completed.
281
280
$ queue = _batch_queue ($ current_set );
282
-
283
- // If we are in progressive mode, break processing after 1 second.
284
- if (drush_memory_limit () > 0 && (memory_get_usage () * 2 ) >= drush_memory_limit ()) {
285
- Drush::logger ()->notice (dt ("Batch process has consumed in excess of 50% of available memory. Starting new thread " ));
286
- // Record elapsed wall clock time.
287
- $ current_set ['elapsed ' ] = round ((microtime (TRUE ) - $ current_set ['start ' ]) * 1000 , 2 );
288
- break ;
289
- }
290
281
}
291
282
292
283
// Reporting 100% progress will cause the whole batch to be considered
0 commit comments