mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 05:51:15 +08:00
22 lines
448 B
TypeScript
22 lines
448 B
TypeScript
// Crons module supports OpenClaw QA credential workflows.
|
|
import { cronJobs } from "convex/server";
|
|
import { internal } from "./_generated/api";
|
|
|
|
const crons = cronJobs();
|
|
|
|
crons.interval(
|
|
"qa-credential-lease-event-retention",
|
|
{ hours: 1 },
|
|
internal.credentials.cleanupLeaseEvents,
|
|
{},
|
|
);
|
|
|
|
crons.interval(
|
|
"qa-credential-admin-event-retention",
|
|
{ hours: 1 },
|
|
internal.credentials.cleanupAdminEvents,
|
|
{},
|
|
);
|
|
|
|
export default crons;
|