Skip to content

Commit

Permalink
Add target population cron job every August
Browse files Browse the repository at this point in the history
  • Loading branch information
judtinzhang committed Sep 23, 2023
1 parent e53407a commit de6d4e8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions k8s/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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" }]
});
}
}

Expand Down

0 comments on commit de6d4e8

Please sign in to comment.