Function killed. Error: quota exceeded
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:
- You can have 5000 function invocations per day.
- You can have 50 function invocations per 100 seconds.
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).
huddie96
Newbie IOS developer who hopes one day to have the knowledge as some of the users on this site.
Updated on June 17, 2022Comments
-
huddie96 about 2 years
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?