Unclaim pending actions that have not been run within a given time limit. 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 a queue to run before unclaiming its pending actions. Default 300 (5 minutes).
// Modifier la valeur avec le filtre 'action_scheduler_timeout_period'
add_filter('action_scheduler_timeout_period', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($time_limit) {
// Modifier la valeur
return $time_limit;
}
Chargement des actualités...