From 618b65c95df7c4a2851cff908f89b6398ef16107 Mon Sep 17 00:00:00 2001 From: Julian Weng Date: Fri, 8 Nov 2024 17:53:44 -0500 Subject: [PATCH] =?UTF-8?q?Add=20cron=20job=20to=20update=20membership=5Fc?= =?UTF-8?q?ount=20and=20favorite=5Fcount=20=F0=9F=98=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- k8s/main.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/k8s/main.ts b/k8s/main.ts index fc7198317..8276c0b29 100644 --- a/k8s/main.ts +++ b/k8s/main.ts @@ -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,