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" }] + }); } }