action_scheduler_recurring_action_failure_threshold

action_scheduler_recurring_action_failure_threshold

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

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('action_scheduler_recurring_action_failure_threshold') is found 1 times:

  • /packages/action-scheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php line 186
    		 * that is considered consistent failure and a new instance of the action will not be scheduled.
    		 *
    		 * @param int $failure_threshold Number of actions of the same hook to examine for failure. Defaults to 5.
    		 */
    		$consistent_failure_threshold = (int) apply_filters( 'action_scheduler_recurring_action_failure_threshold', 5 );
    
    		// This query should find the earliest *failing* action (for the hook we are interested in) within our threshold.
    		$query_args = array(
    			'hook'         => $action->get_hook(),
    			'status'       => ActionScheduler_Store::STATUS_FAILED,
    			'date'         => date_create( 'now', timezone_open( 'UTC' ) )->format( 'Y-m-d H:i:s' ),