Skip to content

Commit

Permalink
Add cron job to update membership_count and favorite_count 😭
Browse files Browse the repository at this point in the history
  • Loading branch information
julianweng committed Nov 8, 2024
1 parent 60a59e7 commit 618b65c
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 @@ -75,6 +75,13 @@ export class MyChart extends PennLabsChart {
cmd: ['python', 'manage.py', 'rank'],
});

new CronJob(this, 'update-club-counts', {
schedule: cronTime.everyDayAt(0, 12),
image: backendImage,
secret: clubsSecret,
cmd: ['python', 'manage.py', 'update_club_counts'],
})

new CronJob(this, 'osa-perms-updates', {
schedule: cronTime.every(5).minutes(),
image: backendImage,
Expand Down

0 comments on commit 618b65c

Please sign in to comment.