Im working with Firebase's cloud functions on the Spark Plan.
I'm using a cronJob to invoke a function every 2 min.
I have recently gotten this error:
Function killed. Error: quota exceeded
When trying to deploy I get a similar error:
Deploy Error: Function load error: Error: quota exceeded
I know there is a quota on the spark plan but my stats are as follows:
118 Executions
207 Total invocations
The spark plan says you get 125,000/month free invocations is there a limit of executions? Ive tried deploying a new function but I get the same errors.
What quota am I exceeding?
Thanks for raising this question, it's something that should be covered better in the Firebase documentation.
You're correct that the Spark plan has a 125,000/month free function invocation limit. In addition however (and currently still unmentioned in the docs) there's per-day and a per-100-seconds limits too:
If these per-day or per-100s quotas are problematic for you, I suggest upgrading and using the free quota in the pay-as-you-go Blaze plan. You'll get even more free access (two million (!) invocations free), and all these quotas practically go away (only some abuse protections remaining).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With