Firebase配额已超出(Firebase quota exceeded)
我正在尝试部署我的firebase功能(大约40个功能),但我收到消息错误“HTTP错误:429,超出项目XXX的Google Cloud Functions API配额”,只有部分功能得到更新/创建。 我知道这个限制是因为免费计划让我每100秒只能部署20个功能!
那么,我如何选择我想要部署的功能而不影响其他功能呢?
基本上我正在寻找一种方法来部署20个函数然后等待100秒并部署其他20个函数,因为我只想在我的index.js文件中部署20个函数将从服务器中删除其他函数。
谢谢。
I'am trying to deploy my firebase functions (approximately 40 functions) but I'm getting the message error "HTTP Error: 429, Quota for Google Cloud Functions API exceeded for project XXX" and only some of the functions get updated/created. I know that limitation is because of the free plan that lets me deploy only 20 functions per 100 seconds!
So, how can I chose the functions I want to deploy without affecting the others?
Basically I'm looking for a way to deploy 20 functions then wait for 100 seconds and deploy the other 20 functions because letting only 20 function I want to deploy in my index.js file will delete the others from the server.
Thank you.
原文:https://stackoverflow.com/questions/44217601
最满意答案
形式参数,即参数,在函数定义中 。 实际参数,即参数,在函数调用中 。
所以在这里:
def factorial(n):
是一个正式的参数。
并且
n - 1
(或者更确切地说, 它评估的值 )在这里:return n * factorial(n-1)
是一个“实际参数”,即一个参数。
A formal parameter, i.e. a parameter, is in the function definition. An actual parameter, i.e. an argument, is in a function call.
So
n
here:def factorial(n):
Is a formal parameter.
And
n - 1
(or rather, the value it evaluates to) here:return n * factorial(n-1)
Is an "actual parameter", i.e. an argument.
相关问答
更多-
下列中不属于面向对象的编程语言的是?[2022-05-30]
a -
python中函数的参数(Parameters of a function in python)[2023-06-03]
在我看来,你希望readers成为非字符串可迭代的。 也许试试: devices = map(InputDevice, readers.split(',')) 这会将readers分成一个列表,而不是将其保存为字符串。 这仍然不是特别干净的代码。 最好是首先建立一个列表: readers = [] devices = map(InputDevice, list_devices()) for dev in devices: if "深" in dev.name or "Barcode" in dev. ... -
您可以使用splat操作符: some_func(*params) 这导致该函数作为单独的参数接收每个列表项。 这里有一个描述: http : //docs.python.org/tutorial/controlflow.html#unpacking-argument-lists You can do this using the splat operator: some_func(*params) This causes the function to receive each list item a ...
-
如何将其他参数(除了参数)传递给Python中的函数(How to pass additional parameters (besides of arguments) to a function in Python)[2024-03-05]
如果我正确理解了你的问题,有很多方法可以做你想做的事情并避免使用全局变量。 他们来了。 鉴于: x0 = 1 def fun2(f1, x): return f1(x) 所有这些技术都可以实现您的目标: #### #0 -- function attributes def fun1(x): return x + fun1.c fun1.c = 1; y = fun2(fun1, x0); print(y) # --> 2 fun1.c = 2; y = fun2(fun1, ... -
Python是强类型的,因为每个对象都有一个类型,每个对象都知道它的类型,不可能意外地或故意地使用一个类型的对象,就像它是一个不同类型的对象一样 ,对象上的所有基本操作都是委托给它的类型。 这与名字无关。 Python中的一个名称并不“有一个类型”:如果定义了名称,则该名称引用一个对象 ,并且该对象确实有一个类型(但实际上并不强制名称上的类型:a名字是一个名字)。 Python中的一个名字可以很好地在不同的时间引用不同的对象(如大多数编程语言,尽管不是全部),并且对名称没有任何约束,因此,如果它曾经被称为X ...
-
所有其他答案都是正确的,但只是为了完成 以下列方式声明函数: return-type function-name(parameter-list,...) { body... } return-type是函数返回的变量类型。 这不能是数组类型或函数类型。 如果没有给出,则假定int 。 function-name是函数的名称 。 parameter-list是函数用逗号分隔的参数列表。 如果没有给出参数,则该函数不采用任何参数,并且应该使用一组空的括号或关键字void定义。 如果参数列表中的变量前面没有 ...
-
形式参数,即参数,在函数定义中 。 实际参数,即参数,在函数调用中 。 所以在这里: def factorial(n): 是一个正式的参数。 并且n - 1 (或者更确切地说, 它评估的值 )在这里: return n * factorial(n-1) 是一个“实际参数”,即一个参数。 A formal parameter, i.e. a parameter, is in the function definition. An actual parameter, i.e. an argument, ...
-
>>> inspect.getargspec(a_function_somewhere) ArgSpec(args=['arg1', 'arg2', 'arg3'], varargs=None, keywords=None, defaults=(None, 12)) >>> inspect.getargspec(a_function_somewhere) ArgSpec(args=['arg1', 'arg2', 'arg3'], varargs=None, keyword ...
-
在python中仅使用具有许多参数的函数的2个参数(Fitting only 2 paramter of a function with many parameters in python)[2022-02-16]
这是洛伦兹函数的所有4个参数的解决方案 import numpy as np from scipy.optimize import curve_fit def lorentz(ph, A, xc, w, f0): return f0 + A * w**2 / (w**2 + (ph - xc)**2) A, xc, w, f0 = 2,2,2,2 # true values ph = np.linspace(-5, 10, 100) y = lorentz(ph, A, xc, w, f0) ... -
我认为你对函数参数列表中var含义有误解。 在此设置中, var用于指示参数是通过引用传递的。 这意味着调用者可以看到函数中的修改。 将此与传递值进行对比,其中在函数中进行的修改不会修改调用者传递的变量。 我怀疑你认为参数必须用var声明,就像局部变量一样。 事实并非如此。 编程语言关键字通常是上下文敏感的,并且根据它们出现的位置具有不同的含义。 考虑一个引用调用者变量的var参数,以及一个pass by value参数作为调用者变量的副本。 所有这一切的结果是必须将var参数传递给实际变量。 您无法传递文 ...