Cron events happen multiple times every time
# workers-help
g
Hello! I've just received an email saying that I reached 50% of the daily limit for KV for a project that I haven't modified in months and for which the route is disabled. So I checked the cron events logs and I noticed they are called 3 times every time 🤔 I don't understand why and today is the first time it happens.

https://cdn.discordapp.com/attachments/1108765496087679038/1108765634566836305/image.png

https://cdn.discordapp.com/attachments/1108765496087679038/1108765634885591120/image.png

Also this is what I see in the KV tab. My cron event should only call KV.put() and KV.get() twice every time and never KV.list() so this is weird too

https://cdn.discordapp.com/attachments/1108765496087679038/1108766159148425226/image.png

s
Could you try deleting the worker & republishing it?
The dashboard invokes operations on your account, if you open a KV namespace, it'll request the values, which is a list
g
Ok, I'll try 🙂
Oh ok that makes sense then
Will I have to set those again? (I don't really remember how everything works to be honest 🥲 )

https://cdn.discordapp.com/attachments/1108765496087679038/1108767109892292720/image.png

s
Did you make the worker using wrangler, or the dashboard?
g
I used wrangler
s
Then using
wrangler publish
should recreate all of those things for you
g
Alright, I will try then 🙂
I can't see if it works because my cron event stops now but I'll let you know if it worked tomorrow. Thank you for your help! 🙂
s
Alright, no worries
g
It looks like it works now 😁 Thank you!

https://cdn.discordapp.com/attachments/1108765496087679038/1109727703009067009/image.png

s
Glad to hear