firebase 云函数超时并使用 flutter 进行部署

firebase cloud function timeout and deploy using flutter

我是整个云函数的新手,我有两个问题,首先是该函数的超时真的只有 60 秒吗?为什么会这样,其次我如何始终部署云功能?它会收取更多吗?谁能给我解释一下?我已经用打字稿写了 post 但我应该每 60 秒部署一次它不是解决方案!我应该怎么办 ?我正在开发 flutter 应用程序。 我应该使用云功能包部署功能吗?我很困惑!

I have two questions , first is the timeout for the function is really just 60 second ?

是的。

and why is that

文档中没有任何地方给出原因。但是,对于预期在 Cloud Functions 中执行的那种工作,这是一个明智的起点。它绝对不适合 long-running 工作。

how can I deploy the cloud function always ? will it charge more ? can anyone explain this to me ?

我想你对超时是什么感到困惑。这不是功能保持部署的时间量。一旦部署,它仍然会永远保持部署状态。超时是指在关闭一次调用之前处理单个事件所花费的时间量。