From 02317fdd17a729dc43c57cd9f6c78c463cca955b Mon Sep 17 00:00:00 2001 From: "Paul G." Date: Mon, 7 Oct 2024 09:12:33 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20ajout=20d'une=20r=C3=A8gle=20cron=20pour?= =?UTF-8?q?=20la=20maj=20deca=20(#3841)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Paul Gaucher --- server/src/jobs/jobs.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server/src/jobs/jobs.ts b/server/src/jobs/jobs.ts index 5af1639f9..aaecab013 100644 --- a/server/src/jobs/jobs.ts +++ b/server/src/jobs/jobs.ts @@ -166,6 +166,13 @@ export async function setupJobProcessor() { return 0; }, }, + "Mettre à jour les effectifs DECA tous les dimanches matin à 6h": { + cron_string: "0 6 * * 0", + handler: async () => { + await addJob({ name: "hydrate:contrats-deca-raw", queued: true }); + return 0; + }, + }, // TODO : Checker si coté métier l'archivage est toujours prévu ? // "Run archive dossiers apprenants & effectifs job each first day of month at 12h45": {