Checkpoint: Augmentation de la tolérance du scheduler de rappels de 20 à 30 minutes pour couvrir 2 cycles de vérification (intervalle de 15 minutes). Cela permet de capturer les rappels même si le serveur a redémarré ou si le scheduler a manqué un cycle. Par exemple, un rappel configuré à 15h03 sera maintenant envoyé même si le scheduler vérifie à 15h15 ou 15h30.

This commit is contained in:
Manus
2026-01-18 09:17:21 -05:00
parent a3fd588fb8
commit 47662ea545
5 changed files with 89 additions and 2 deletions

View File

@@ -0,0 +1,18 @@
{
"query": "SELECT id, nom, timing, joursAvant, heureEnvoi, actif FROM rappels WHERE nom = 'J+2' OR timing = 'J+2';",
"command": "mysql --batch --raw --column-names --default-character-set=utf8mb4 --host gateway02.us-east-1.prod.aws.tidbcloud.com --port 4000 --user 4CrrYuB5tme73Qo.root --database 7PAT67UmWoxv8vwp8Bbcv6 --execute SELECT id, nom, timing, joursAvant, heureEnvoi, actif FROM rappels WHERE nom = 'J+2' OR timing = 'J+2';",
"rows": [
{
"id": "30001",
"nom": "J+2",
"timing": "post_formation",
"joursAvant": "2",
"heureEnvoi": "09:00",
"actif": "1"
}
],
"messages": [],
"stdout": "id\tnom\ttiming\tjoursAvant\theureEnvoi\tactif\n30001\tJ+2\tpost_formation\t2\t09:00\t1\n",
"stderr": "",
"execution_time_ms": 233
}

View File

@@ -0,0 +1,9 @@
{
"query": "SELECT * FROM rappels WHERE id = 9;",
"command": "mysql --batch --raw --column-names --default-character-set=utf8mb4 --host gateway02.us-east-1.prod.aws.tidbcloud.com --port 4000 --user 4CrrYuB5tme73Qo.root --database 7PAT67UmWoxv8vwp8Bbcv6 --execute SELECT * FROM rappels WHERE id = 9;",
"rows": [],
"messages": [],
"stdout": "",
"stderr": "",
"execution_time_ms": 141
}

View File

@@ -0,0 +1,58 @@
{
"query": "SELECT id, nom, timing, joursAvant, heureEnvoi, actif FROM rappels WHERE actif = 1;",
"command": "mysql --batch --raw --column-names --default-character-set=utf8mb4 --host gateway02.us-east-1.prod.aws.tidbcloud.com --port 4000 --user 4CrrYuB5tme73Qo.root --database 7PAT67UmWoxv8vwp8Bbcv6 --execute SELECT id, nom, timing, joursAvant, heureEnvoi, actif FROM rappels WHERE actif = 1;",
"rows": [
{
"id": "1",
"nom": "J-7",
"timing": "pre_formation",
"joursAvant": "7",
"heureEnvoi": "09:00",
"actif": "1"
},
{
"id": "2",
"nom": "J-15",
"timing": "pre_formation",
"joursAvant": "15",
"heureEnvoi": "09:00",
"actif": "1"
},
{
"id": "30001",
"nom": "J+2",
"timing": "post_formation",
"joursAvant": "2",
"heureEnvoi": "09:00",
"actif": "1"
},
{
"id": "60001",
"nom": "J-3",
"timing": "pre_formation",
"joursAvant": "3",
"heureEnvoi": "09:00",
"actif": "1"
},
{
"id": "60002",
"nom": "J+30",
"timing": "post_formation",
"joursAvant": "30",
"heureEnvoi": "09:00",
"actif": "1"
},
{
"id": "90001",
"nom": "J+10",
"timing": "post_formation",
"joursAvant": "10",
"heureEnvoi": "09:00",
"actif": "1"
}
],
"messages": [],
"stdout": "id\tnom\ttiming\tjoursAvant\theureEnvoi\tactif\n1\tJ-7\tpre_formation\t7\t09:00\t1\n2\tJ-15\tpre_formation\t15\t09:00\t1\n30001\tJ+2\tpost_formation\t2\t09:00\t1\n60001\tJ-3\tpre_formation\t3\t09:00\t1\n60002\tJ+30\tpost_formation\t30\t09:00\t1\n90001\tJ+10\tpost_formation\t10\t09:00\t1\n",
"stderr": "",
"execution_time_ms": 49
}