Surface audit generations on dashboard audits
This commit is contained in:
26
v2_elemente/crons.ts
Normal file
26
v2_elemente/crons.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* convex/crons.ts
|
||||
*
|
||||
* Zeitgesteuerte Ausführung. Prüft regelmäßig auf fällige Kampagnen
|
||||
* (nextRunAt <= now) und stößt je einen Lauf an.
|
||||
*/
|
||||
import { cronJobs } from "convex/server";
|
||||
import { internal } from "./_generated/api";
|
||||
|
||||
const crons = cronJobs();
|
||||
|
||||
crons.interval(
|
||||
"fällige Kampagnen ausführen",
|
||||
{ minutes: 15 },
|
||||
internal.campaigns.runDueCampaigns,
|
||||
{},
|
||||
);
|
||||
|
||||
crons.daily(
|
||||
"audit-lifecycle",
|
||||
{ hourUTC: 3, minuteUTC: 0 },
|
||||
internal.audits.processLifecycle,
|
||||
{},
|
||||
);
|
||||
|
||||
export default crons;
|
||||
Reference in New Issue
Block a user