Skip to content

Commit

Permalink
Add daily cronjob for sync command 💀
Browse files Browse the repository at this point in the history
  • Loading branch information
julianweng committed Feb 17, 2025
1 parent 306ed9b commit f608990
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 @@ -110,6 +110,13 @@ export class MyChart extends PennLabsChart {
cmd: ["python", "manage.py", "expire_membership_invites"],
});

new CronJob(this, 'sync', {
schedule: cronTime.everyDayAt(12),
image: backendImage,
secret: clubsSecret,
cmd: ["python", "manage.py", "sync"],
});

new CronJob(this, 'graduate-users', {
schedule: cronTime.everyYearIn(1, 1, 12, 0),
image: backendImage,
Expand Down

0 comments on commit f608990

Please sign in to comment.