ActionScheduler_AsyncRequest_QueueRunner::get_sleep_seconds()protectedWC 1.0

Chaining async requests can crash MySQL. A brief sleep call in PHP prevents that.

Method of the class: ActionScheduler_AsyncRequest_QueueRunner{}

Return

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->get_sleep_seconds();

ActionScheduler_AsyncRequest_QueueRunner::get_sleep_seconds() code WC 9.4.2

protected function get_sleep_seconds() {
	return apply_filters( 'action_scheduler_async_request_sleep_seconds', 5, $this );
}