Skip to content

Commit

Permalink
Add target population cron job every August (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
judtinzhang authored Sep 27, 2023
1 parent 4960df4 commit c863373
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 c863373

Please sign in to comment.