action_scheduler_queue_runner_batch_size

action_scheduler_queue_runner_batch_size

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('action_scheduler_queue_runner_batch_size') is found 1 times:

  • /packages/action-scheduler/classes/ActionScheduler_QueueRunner.php line 139
     
    		$this->processed_actions_count = 0;
    		if ( false === $this->has_maximum_concurrent_batches() ) {
    			do {
    				$batch_size                     = apply_filters( 'action_scheduler_queue_runner_batch_size', 25 );
    				$processed_actions_in_batch     = $this->do_batch( $batch_size, $context );
    				$this->processed_actions_count += $processed_actions_in_batch;
    			} while ( $processed_actions_in_batch > 0 && ! $this->batch_limits_exceeded( $this->processed_actions_count ) ); // keep going until we run out of actions, time, or memory.
    		}
    
    		do_action( 'action_scheduler_after_process_queue' );