ActionScheduler_Abstract_QueueRunner::has_maximum_concurrent_batches()publicWC 1.0

Check if the number of allowed concurrent batches is met or exceeded.

Method of the class: ActionScheduler_Abstract_QueueRunner{}

No Hooks.

Return

true|false.

Usage

$ActionScheduler_Abstract_QueueRunner = new ActionScheduler_Abstract_QueueRunner();
$ActionScheduler_Abstract_QueueRunner->has_maximum_concurrent_batches();

ActionScheduler_Abstract_QueueRunner::has_maximum_concurrent_batches() code WC 9.3.3

public function has_maximum_concurrent_batches() {
	return $this->store->get_claim_count() >= $this->get_allowed_concurrent_batches();
}