Added persistent statuses.

This commit is contained in:
2025-10-27 16:00:45 -05:00
parent 4306d69558
commit d2517901a8
12 changed files with 163 additions and 77 deletions

View File

@@ -1,7 +1,7 @@
// convex/crons.ts
import { cronJobs } from 'convex/server';
import { api } from './_generated/api';
// Cron order: Minute Hour DayOfMonth Month DayOfWeek
const crons = cronJobs();
crons.cron(
@@ -13,9 +13,9 @@ crons.cron(
);
crons.cron(
'End of shift (weekdays 5pm CT)',
// Run at 4:00 PM CST / 5:00 PM CDT
// Only on weekdays
'End of shift (weekdays 5pm CT)',
'0 22 * * 1-5',
api.statuses.endOfShiftUpdate,
);