action_scheduler_run_queue

action_scheduler_run_queue

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

do_action('action_scheduler_run_queue') is found 1 times:

  • /packages/action-scheduler/classes/ActionScheduler_AsyncRequest_QueueRunner.php line 48
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    * 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.
     */
    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 );
        }