WordPress at Your Fingertips
function is not described

ActionScheduler_Abstract_QueueRunner::batch_limits_exceeded() protected WC 1.0

See if the batch limits have been exceeded, which is when memory usage is almost at the maximum limit, or the time to process more actions will exceed the max time limit.

Based on WC_Background_Process::batch_limits_exceeded()

{} It's a method of the class: ActionScheduler_Abstract_QueueRunner{}

No Hooks.




// protected - for code of main (parent) or child class
$result = $this->batch_limits_exceeded( $processed_actions );
$processed_actions(int) (required)
The number of actions processed so far - used to determine the likelihood of exceeding the time limit if processing another action

Code of ActionScheduler_Abstract_QueueRunner::batch_limits_exceeded() WC 6.1.1

protected function batch_limits_exceeded( $processed_actions ) {
	return $this->memory_exceeded() || $this->time_likely_to_be_exceeded( $processed_actions );