action_scheduler_timeout_period

action_scheduler_timeout_period

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.7.1

apply_filters('action_scheduler_timeout_period') is found 1 times:

  • /packages/action-scheduler/classes/ActionScheduler_QueueCleaner.php line 173

    *
    * @param int $time_limit The number of seconds to allow a queue to run before unclaiming its pending actions. Default 300 (5 minutes).
    */
    public function reset_timeouts( $time_limit = 300 ) {
    $timeout = apply_filters( ‘action_scheduler_timeout_period’, $time_limit );

    if ( $timeout < 0 ) { return; } $cutoff = as_get_datetime_object( $timeout . ' seconds ago' ); [/php]