Supprimer crons Jeedom / bug du "moteur de tâches"

Bonsoir

Suite à un bug d’un équipement, j’ai un nombre anormalement élevé de « crons » qui encombrent mon « moteur des tâches » et empêche, il me semble, mon jeedom de fonctionner correctement.

Je pense que mon hardware est à jour, c’est vraiment le « moteur des tâches » qui me soucie à présent, car je ne peux pas l’afficher en mode web (il se fige et génère une erreur sous chrome) et je vois une infinité de crons identiques sur la version mobile.

J’ai fouillé le forum, seul un sujet avec le plugin thermostat s’en rapproche mais la solution n’est pas donnée clairement. Merci d’avance de votre aide, je joins la « santé » du jeedom pour anticiper.

Essaye çà dans un bloc code scenario ?

$numCron = cron::nbCronRun();
$scenario->setLog('cron running: ' . numCron);
$crons = cron::all();
$scenario->setLog('crons: ' . count($crons));
foreach ($crons as $cron) {
	$scenario->setLog($cron->getClass() . ' / ' . $cron->getFunction() . ' / ' . $cron->getSchedule() . ' / ' . json_encode($cron->getOption()) . ' / ' . $cron->getState());
}

Bonsoir et merci pour cette réponse très complète

J’ai exécuté ce scénario, plusieurs fois même. Malgré plusieurs essais et plusieurs redémarrages, les crons sont toujours là. Le scénario semble stopper les crons, mais pas les supprimer.

En tout cas, j’ai toujours le bug sur le moteur des tâches, et chaque exécution du scénario fait apparaître, en log, une infinité de crons qui sont stoppés.

J’espère avoir été clair. Merci encore

Le scénario ne fait rien à part donner des infos. C le log du scénario qui peu être intéressant.

En fonction du log tu peu ensuite ajouter un id et supprimer des crins par exemple

en effet, j’avais mal compris

Donc les logs me montrent une infinité de crons liés à un plugin précis (que j’ai désactivé depuis) mais c’est sur l’étape suivante (= la suppression des crons) où je sèche ! Comment faire pour supprimer tous les crons qui correspondent à un plugin, dans le bloc scénario ? J’ai un « id=24 » qui est celui qui déraille, justement.

Désolé je suis débutant en PHP, j’arrive à peu près à me débrouiller pour le reste avec l’aide du forum + la documentation mais là je suis rincé

idéalement j’aimerais ajouter qqch dans le genre à la fin du bloc scénario précédent, mais je ne suis pas sûr de moi… Merci encore du coup de main !

foreach ($cron as id=24) {
$scenario->delete ($cron);
}

Bonjour,
il y a juste une petite coquille dans le bloc code, mais on va pas en vouloir a Kiboost, il peut pas être partout :wink:. copie celui-ci :

$numCron = cron::nbCronRun();
$scenario->setLog('cron running: ' . $numCron);
$crons = cron::all();
$scenario->setLog('crons: ' . count($crons));
foreach ($crons as $cron) {
	$scenario->setLog($cron->getClass() . ' / ' . $cron->getFunction() . ' / ' . $cron->getSchedule() . ' / ' . json_encode($cron->getOption()) . ' / ' . $cron->getState());
}

Exécute celui-ci, et post le résultat dans un bloc préformatté image

Bonjour et merci du coup de main

alors j’ai le même log qu’avec le code de @kiboost, les milliers de cron que je cherche précisément à supprimer pour reprendre la main sur mon « moteur de tâches ».

[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
{"scenario_id":38,"scenarioElement_id":233,"second":0,"tags":[]} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] scenario / doIn / 36 17 09 11 * / {"scenario_id":70,"scenarioElement_id":508,"second":0,"tags":[]} / stop
[2022-11-12 14:55:37][SCENARIO] scenario / doIn / 37 17 09 11 * / {"scenario_id":70,"scenarioElement_id":503,"second":0,"tags":[]} / stop
[2022-11-12 14:55:37][SCENARIO] scenario / doIn / 38 17 09 11 * / {"scenario_id":70,"scenarioElement_id":504,"second":0,"tags":[]} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] thermostat / pull / 00 01 01 01 * / {"thermostat_id":24,"stop":1} / stop
[2022-11-12 14:55:37][SCENARIO] scenario / doIn / 18 07 11 11 * / {"scenario_id":49,"scenarioElement_id":313,"second":0,"tags":[]} / stop
[2022-11-12 14:55:37][SCENARIO] scenario / doIn / 19 07 11 11 * / {"scenario_id":49,"scenarioElement_id":314,"second":0,"tags":[]} / stop
[2022-11-12 14:55:37][SCENARIO] scenario / doIn / 55 07 11 11 * / {"scenario_id":49,"scenarioElement_id":330,"second":0,"tags":[]} / stop
[2022-11-12 14:55:37][SCENARIO] scenario / doIn / 15 07 11 11 * / {"scenario_id":49,"scenarioElement_id":482,"second":0,"tags":[]} / stop
[2022-11-12 14:55:37][SCENARIO] scenario / doIn / 28 07 12 11 * / {"scenario_id":14,"scenarioElement_id":42,"second":0,"tags":[]} / stop
[2022-11-12 14:55:37][SCENARIO] scenario / doIn / 47 07 12 11 * / {"scenario_id":49,"scenarioElement_id":306,"second":0,"tags":[]} / stop
[2022-11-12 14:55:37][SCENARIO] scenario / doIn / 46 07 12 11 * / {"scenario_id":49,"scenarioElement_id":307,"second":0,"tags":[]} / stop
[2022-11-12 14:55:37][SCENARIO] scenario / doIn / 48 07 12 11 * / {"scenario_id":49,"scenarioElement_id":308,"second":0,"tags":[]} / stop
[2022-11-12 14:55:37][SCENARIO] scenario / doIn / 49 07 12 11 * / {"scenario_id":49,"scenarioElement_id":309,"second":0,"tags":[]} / stop
[2022-11-12 14:55:37][SCENARIO] scenario / doIn / 50 07 12 11 * / {"scenario_id":49,"scenarioElement_id":481,"second":0,"tags":[]} / stop
[2022-11-12 14:55:37][SCENARIO] scenario / doIn / 45 08 12 11 * / {"scenario_id":49,"scenarioElement_id":545,"second":0,"tags":[]} / stop
[2022-11-12 14:55:37][SCENARIO] scenario / doIn / 58 06 12 11 * / {"scenario_id":17,"scenarioElement_id":446,"second":0,"tags":[]} / stop
[2022-11-12 14:55:37][SCENARIO] scenario / doIn / 59 06 12 11 * / {"scenario_id":17,"scenarioElement_id":447,"second":0,"tags":[]} / stop
[2022-11-12 14:55:37][SCENARIO] scenario / doIn / 17 17 12 11 * / {"scenario_id":15,"scenarioElement_id":43,"second":0,"tags":[]} / stop
[2022-11-12 14:55:37][SCENARIO] scenario / doIn / 15 07 12 11 * / {"scenario_id":17,"scenarioElement_id":143,"second":0,"tags":[]} / stop
[2022-11-12 14:55:37][SCENARIO] scenario / doIn / 16 07 12 11 * / {"scenario_id":17,"scenarioElement_id":152,"second":0,"tags":[]} / stop
[2022-11-12 14:55:37][SCENARIO] scenario / doIn / 17 07 12 11 * / {"scenario_id":17,"scenarioElement_id":188,"second":0,"tags":[]} / stop
[2022-11-12 14:55:37][SCENARIO] scenario / doIn / 18 07 12 11 * / {"scenario_id":17,"scenarioElement_id":215,"second":0,"tags":[]} / stop
[2022-11-12 14:55:37][SCENARIO] scenario / doIn / 19 07 12 11 * / {"scenario_id":17,"scenarioElement_id":216,"second":0,"tags":[]} / stop
[2022-11-12 14:55:37][SCENARIO] scenario / doIn / 20 07 12 11 * / {"scenario_id":17,"scenarioElement_id":217,"second":0,"tags":[]} / stop
[2022-11-12 14:55:37][SCENARIO] Fin correcte du scénario

Bonjour,

Je pense qu’on a compris donc pas la peine de répéter ca en boucle :wink:

Par contre pour vous guider on a besoin d’info et c’est un peu compliqué des les obtenir.

Par exemple :

C’est donc quel plugin que vous avez désactivé? plugin-thermostat ?

1 « J'aime »

Je te propose donc ce code a executer dans un bloc code scénario aussi , sa aura pour effet de supprimer les crons du plugin thermostat ayant comme schedule 00 01 01 01 *, mais sa donnera pas réponse de pourquoi autant de Cron :thinking:

$numCronThermostat = 0;
$numCronDeleteThermostat = 0;
$crons = cron::all();

$scenario->setLog('---------------------- Nettoyage ----------------------------');
foreach ($crons as $cron) {
  if ($cron->getClass() == 'thermostat') {
    $numCronThermostat++;
    if ($cron->getSchedule() == '00 01 01 01 *') {
      $scenario->setLog('[NOK] ' . $cron->getClass() . ' | ' . $cron->getSchedule() . ' | ' . $cron->getNextRunDate() . ' | ' . json_encode($cron->getOption()) . ' | ' . $cron->getState());
      $cron->remove();
      $numCronDeleteThermostat++;
    } else
    {
      $scenario->setLog('[OK] ' . $cron->getClass() . ' | ' . $cron->getSchedule() . ' | ' . $cron->getNextRunDate() . ' | ' . json_encode($cron->getOption()) . ' | ' . $cron->getState());
    }
  }
}
$scenario->setLog('---------------------- STAT ----------------------------');
$scenario->setLog('Cron thermostat trouvé : ' . $numCronThermostat);
$scenario->setLog('Cron thermostat supprimé : ' . $numCronDeleteThermostat);

Oublie pas de poster le résultat.

1 « J'aime »

Merci j’essaie !

Sur le pourquoi, visiblement un équipement défaillant et un scénario un peu bancal. Je ne suis pas le seul (cf ici : Des milliers de tâches CRON thermostat pull() - #30 par axel).

Je posterai le résultat dès que le scénario finit de s’exécuter

Voici le résultat du scénario !
Donc tout est rentré dans l’ordre, un grand merci

[2022-11-12 19:05:09][SCENARIO] ---------------------- STAT ----------------------------
[2022-11-12 19:05:09][SCENARIO] Cron thermostat trouvé : 1800
[2022-11-12 19:05:09][SCENARIO] Cron thermostat supprimé : 1799
[2022-11-12 19:05:09][SCENARIO] Fin correcte du scénario

1800 quand même :flushed:

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.