Eliot Gevers
Eliot Gevers2mo ago

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?
No description
11 Replies
Eliot Gevers
Eliot GeversOP2mo ago
No description
Eliot Gevers
Eliot GeversOP2mo ago
No description
Clever Tagline
Clever Tagline2mo ago
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.
Eliot Gevers
Eliot GeversOP2mo ago
I found more info, it is being triggered by resend/emailWorkpool
No description
Eliot Gevers
Eliot GeversOP2mo ago
No description
Eliot Gevers
Eliot GeversOP2mo ago
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
Sara
Sara2mo ago
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
Eliot Gevers
Eliot GeversOP2mo ago
It's eating all my resources @Ian I know you are the the goat. Would you mind looking into this?
Eliot Gevers
Eliot GeversOP2mo ago
No description
ian
ian2mo ago
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
Eliot Gevers
Eliot GeversOP2mo ago
Yeah I have a few: resend/emailWorkpool, resend/callbackWorkpool, workflow, and workflow/workpool

Did you find this page helpful?