From de6d4e8348fdb66b525afdaa25ef7af669c02893 Mon Sep 17 00:00:00 2001 From: Justin Zhang Date: Fri, 22 Sep 2023 22:13:59 -0400 Subject: [PATCH] Add target population cron job every August --- k8s/main.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/k8s/main.ts b/k8s/main.ts index 2b60a3e3..89fe9ba8 100644 --- a/k8s/main.ts +++ b/k8s/main.ts @@ -97,6 +97,13 @@ export class MyChart extends PennLabsChart { env: [{ name: "DJANGO_SETTINGS_MODULE", value: "pennmobile.settings.production" }] }); + new CronJob(this, 'load-target-populations', { + schedule: cronTime.everyYearIn(8), + image: backendImage, + secret, + cmd: ["python", "manage.py", "load_target_populations"], + env: [{ name: "DJANGO_SETTINGS_MODULE", value: "pennmobile.settings.production" }] + }); } }