ActionScheduler_AsyncRequest_QueueRunner::get_sleep_seconds()
Chaining async requests can crash MySQL. A brief sleep call in PHP prevents that.
Method of the class: ActionScheduler_AsyncRequest_QueueRunner{}
Hooks from the method
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() 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 ); }