Add agent workflows & stuff
This commit is contained in:
@@ -1,7 +1,17 @@
|
||||
import { cronJobs } from 'convex/server';
|
||||
|
||||
import { internal } from './_generated/api';
|
||||
|
||||
// Cron order: Minute Hour DayOfMonth Month DayOfWeek
|
||||
const crons = cronJobs();
|
||||
crons.interval(
|
||||
'Refresh due GitHub Spoons',
|
||||
{ hours: 1 },
|
||||
internal.githubSync.refreshDueSpoons,
|
||||
{
|
||||
limit: 10,
|
||||
},
|
||||
);
|
||||
/* Example cron jobs
|
||||
crons.cron(
|
||||
// Run at 7:00 AM CST / 8:00 AM CDT
|
||||
|
||||
Reference in New Issue
Block a user