Mark actions that have been running for more than a given time limit as failed, based on the assumption some uncatchable and unloggable fatal error occurred during processing. When called by ActionScheduler_Abstract_QueueRunner::run_cleanup(), the time limit passed as a parameter is 10x the time limit used for queue processing.
$time_limit
Sortie :
@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).
// Modifier la valeur avec le filtre 'action_scheduler_failure_period'
add_filter('action_scheduler_failure_period', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($time_limit) {
// Modifier la valeur
return $time_limit;
}
Chargement des actualités...