ActionScheduler_Abstract_QueueRunner::batch_limits_exceeded()protectedWC 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()

Метод класса: ActionScheduler_Abstract_QueueRunner{}

Хуков нет.

Возвращает

true|false.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->batch_limits_exceeded( $processed_actions );
$processed_actions(int) (обязательный)
The number of actions processed so far - used to determine the likelihood of exceeding the time limit if processing another action

Код ActionScheduler_Abstract_QueueRunner::batch_limits_exceeded() WC 8.7.0

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