action_scheduler_recurring_action_failure_threshold
action_scheduler_recurring_action_failure_threshold
Appears in: woocommerce.7.4.0, woocommerce.7.4.1
Hook Type: filter
Displaying hooks found in version: woocommerce.7.4.1apply_filters('action_scheduler_recurring_action_failure_threshold') is found 1 times:
- /packages/action-scheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php line 127
* 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' ),