action_scheduler_unexpected_shutdown

action_scheduler_unexpected_shutdown

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.7.1

do_action('action_scheduler_unexpected_shutdown') is found 1 times:

  • /packages/action-scheduler/classes/ActionScheduler_FatalErrorMonitor.php line 91
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
        if ( $error ) {
            if ( in_array( $error['type'], array( E_ERROR, E_PARSE, E_COMPILE_ERROR, E_USER_ERROR, E_RECOVERABLE_ERROR ), true ) ) {
                if ( ! empty( $this->action_id ) ) {
                    $this->store->mark_failure( $this->action_id );
                    do_action( 'action_scheduler_unexpected_shutdown', $this->action_id, $error );
                }
            }
     
            $this->store->release_claim( $this->claim );
        }
    }

See this hook used in plugins: