Skip to content

Commit

Permalink
add back cronjob for expiring stale membership invites
Browse files Browse the repository at this point in the history
  • Loading branch information
rm03 committed Sep 28, 2024
1 parent 50c89db commit 9612017
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 @@ -88,6 +88,13 @@ export class MyChart extends PennLabsChart {
secret: clubsSecret,
cmd: ['python', 'manage.py', 'import_calendar_events'],
});

new CronJob(this, 'expire-stale-membership-invites', {
schedule: cronTime.everyDayAt(12),
image: backendImage,
secret: clubsSecret,
cmd: ["python", "manage.py", "expire_membership_invites"],
});
}
}

Expand Down

0 comments on commit 9612017

Please sign in to comment.