ActionScheduler_Abstract_QueueRunner::has_maximum_concurrent_batches()
Check if the number of allowed concurrent batches is met or exceeded.
Метод класса: ActionScheduler_Abstract_QueueRunner{}
Хуков нет.
Возвращает
true|false
.
Использование
$ActionScheduler_Abstract_QueueRunner = new ActionScheduler_Abstract_QueueRunner(); $ActionScheduler_Abstract_QueueRunner->has_maximum_concurrent_batches();
Код ActionScheduler_Abstract_QueueRunner::has_maximum_concurrent_batches() ActionScheduler Abstract QueueRunner::has maximum concurrent batches WC 9.3.1
public function has_maximum_concurrent_batches() { return $this->store->get_claim_count() >= $this->get_allowed_concurrent_batches(); }