ActionScheduler_AsyncRequest_QueueRunner::handle()protectedWC 1.0

Handle async requests

Run a queue, and maybe dispatch another async request to run another queue if there are still pending actions after completing a queue in this request.

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

Хуки из метода


null. Ничего.


// protected - в коде основоного (родительского) или дочернего класса
$result = $this->handle();

Код ActionScheduler_AsyncRequest_QueueRunner::handle() WC 7.7.0

protected function handle() {
	do_action( 'action_scheduler_run_queue', 'Async Request' ); // run a queue in the same way as WP Cron, but declare the Async Request context

	$sleep_seconds = $this->get_sleep_seconds();

	if ( $sleep_seconds ) {
		sleep( $sleep_seconds );