Skip to content
Extraits de code Groupes Projets
Valider 130cc1cc rédigé par cpol0's avatar cpol0 Validation de marcimat
Parcourir les fichiers

fix: Poser un mutex lors de l'exécution de trig_calculer_prochain_postdate

Ref #5878
parent e3f23995
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -839,7 +839,15 @@ function calculer_prochain_postdate($check = false) { ...@@ -839,7 +839,15 @@ function calculer_prochain_postdate($check = false) {
publier_branche_rubrique($row['id']); publier_branche_rubrique($row['id']);
} }
pipeline('trig_calculer_prochain_postdate', ''); // Poser un mutex le temps de l'éxécution de trig_calculer_prochain_postdate
$fichier = _DIR_TMP . "postdate.lock";
if(!jeune_fichier($fichier,30)){
ecrire_fichier($fichier, 'lock '.date('Y-m-d H:i:s'),true);
pipeline('trig_calculer_prochain_postdate', '');
supprimer_fichier($fichier);
} else {
spip_logger()->notice("trig_calculer_prochain_postdate déjà en cours d'éxécution");
}
} }
$t = sql_fetsel( $t = sql_fetsel(
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter