action_scheduler_failure_period

action_scheduler_failure_period

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('action_scheduler_failure_period') is found 1 times:

  • /packages/action-scheduler/classes/ActionScheduler_QueueCleaner.php line 189
    	 *
    	 * @param int $time_limit The number of seconds to allow an action to run before it is considered to have failed. Default 300 (5 minutes).
    	 */
    	public function mark_failures( $time_limit = 300 ) {
    		$timeout = apply_filters( 'action_scheduler_failure_period', $time_limit );
    		if ( $timeout < 0 ) {
    			return;
    		}
    		$cutoff = as_get_datetime_object($timeout . ' seconds ago');
    		$actions_to_reset = $this->store->query_actions( array(
    			'status'           => ActionScheduler_Store::STATUS_RUNNING,