Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

Run prediction once a week at 01:00 AM

Blue Mouse84e2c10d79cc
diff --git a/apps/production/src/task-manager/task-manager.service.ts b/apps/production/src/task-manager/task-manager.service.ts
index e4bf84735..f8949e2bf 100644
--- a/apps/production/src/task-manager/task-manager.service.ts
+++ b/apps/production/src/task-manager/task-manager.service.ts
@@ -1489,7 +1489,8 @@ export class TaskManagerService {
}
}
- @Cron(CronExpression.EVERY_HOUR)
+ // Every week at 01:00 AM
+ @Cron('0 1 * * 0')
async sendPredictAiRequest(): Promise<void> {
try {
await firstValueFrom(this.httpService.post('/run_prediction/'))