Cron Recover keeps on running all the time
I keep on having crons:recover run every 30 min and I have no clue why
I have no crons set. I have crons enabled as a component but not yet configured. There are no crons on the page either.
Does anyone know why this happens?

11 Replies


In your first screenshot, notice the puzzle icon next to
crons:recover. That means it's part of a component. You can see this confirmed in the last screenshot, showing that their execution is tied to the Resend and Workflow components.
As for what exactly that function is doing with relation to those components, I don't yet know. I'm just as curious as you. 🤷♂️ I definitely wouldn't expect them to rack up higher execution counts than other functions.I found more info, it is being triggered by resend/emailWorkpool


I still have no clue why. I have no scheduled emails or anything
I will try to remove and remount the component, hopefully that fixed it
In the meantime, I just got my convex bill and I am having to pay for all this weird stuff
I am passing over the starter limit even though we are not using much database bandwidth
Btw, I dont even have a crons.ts file anywhere in my /convex folder
yep, I've written about this here https://discord.com/channels/1019350475847499849/1422516528586424371
its coming from the workpool, but it runs every 30 min and we can't do anything about it yet
It's eating all my resources
@Ian I know you are the the goat. Would you mind looking into this?

I should rename that to something less scary. It's harmless - it runs every 5 minutes to detect any transient failure. I could have a dynamic cron that I turn off when the workpool is idle for more than 5 minutes though - that would help keep these logs clean.
How many workpools have you registered? Every 5 min is ~8k function calls per month I think, so maybe it's every 10 min. Which if you have a bunch I guess could add up. Especially with things like Workflow having its own internal workpool
Ah, Resend has two workpools, so that makes it add up more. I'm working on Workpool currently, i'll add this to the list
Yeah I have a few: resend/emailWorkpool, resend/callbackWorkpool, workflow, and workflow/workpool