cps-user3C
Convex Community3y ago
5 replies
cps-user3

How can I cancel scheduled?

export const cancelMessage = mutation({
args: {
id: v.id("_scheduled_functions"),
},
handler: async (ctx, args) => {
await ctx.scheduler.cancel(args.id);
},
});

Property 'cancel' does not exist on type 'Scheduler'.

I followed the example in the documentation, but an error occurred. What's the cause?
Was this page helpful?