Skip to content

Commit

Permalink
fix: ajout d'une règle cron pour la maj deca (#3841)
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Gaucher <[email protected]>
  • Loading branch information
Pomarom and Pomarom authored Oct 7, 2024
1 parent 61f17df commit 02317fd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions server/src/jobs/jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 02317fd

Please sign in to comment.