Skip to content

Commit

Permalink
add trigger-update-establishments-from-sirene to cron jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeBu committed Jun 19, 2023
1 parent 08c46e3 commit 02adce6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion back/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"start": "NODE_ENV=local node -r ts-node/register --max-old-space-size=1536 src/adapters/primary/scripts/startServer.ts",
"start-prod": "NODE_ENV=production node -r ts-node/register --max-old-space-size=1536 src/adapters/primary/scripts/startServer.ts",
"mark-establishments-as-searchable-when-max-contacts-allows": "ts-node src/adapters/primary/scripts/markEstablishmentsAsSearchableWhenMaxContactsAllows.ts",
"start-update-establishments-from-sirene": "ts-node src/adapters/primary/scripts/startUpdateEstablishmentsFromSirene.ts",
"trigger-update-establishments-from-sirene": "ts-node src/adapters/primary/scripts/triggerUpdateEstablishmentsFromSireneApiScript.ts",
"update-agencies-from-PE-referential": "ts-node src/adapters/primary/scripts/updateAllPEAgenciesFromPeAgencyReferential.ts",
"free-quarantined-form-establishments-with-correct-siret": "ts-node src/adapters/primary/scripts/freeQuarantinedFormEstablishmentsWithCorrectSiret.ts",
"transform-past-form-establishments-into-searchable-data": "ts-node src/adapters/primary/scripts/transformPastFormEstablishmentsIntoSearchableData.ts",
Expand Down
4 changes: 4 additions & 0 deletions back/scalingo/cron.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
"command": "53 0 * * * pnpm back run trigger-refresh-materialized-views",
"size": "M"
},
{
"command": "03 2 * * * pnpm back trigger-update-establishments-from-sirene",
"size": "M"
},
{
"command": "15 05 * * * pnpm back run trigger-convention-reminder",
"size": "M"
Expand Down

0 comments on commit 02adce6

Please sign in to comment.