在完成完整部署时,可以自动部署firebase云功能吗?
我有大量的云函数(150+)需要部署。当我运行以下命令:firebase deploy --only functions
进行完整部署时,我收到以下消息:
⚠ functions: too many functions are being deployed, cannot poll status.
In a few minutes, you can check status at https://console.firebase.google.com/project/.../functions/logs
You can use the --only flag to deploy only a portion of your functions in the future.
✔ Deploy complete!
表明部署正在进行中。我遇到的问题是,由于配额限制或其他非代码相关问题,通常有几个功能无法部署,并且必须重试/重新部署这些功能。当轮询时,firebase 将提供用于重试这些的代码,但是,当不轮询时,不会给出进一步的控制台输出。当我访问界面时,我可以看到哪些功能部署失败: 在此处输入图像描述
Google 界面中是否有选项可以重试这些操作,或者使用某些命令可以添加到部署命令以自动重试失败功能的选项吗?目前,我必须通过手动查看列表来手动收集所有失败的函数名称,并运行仅指定这些函数名称的部署。
I have a large amount of cloud functions (150+) that need to be deployed. When i run the following: firebase deploy --only functions
to do a full deploy i get the following message:
⚠ functions: too many functions are being deployed, cannot poll status.
In a few minutes, you can check status at https://console.firebase.google.com/project/.../functions/logs
You can use the --only flag to deploy only a portion of your functions in the future.
✔ Deploy complete!
indicating that the deploy is in progress. The issue i have is that usually several functions fail to deploy due to quota limits or other non-code ralated issues, and these have to be retried/redeployed. When polling firebase will give the code to use to retry these, however, when not polling then no further console output is given. When i access the interface i am able to see which functions failed to deploy:
enter image description here
Is there an option either in the google interface to retry these, or some command option that can be added to the deploy command to auto-retry failed functions? Currently i have to manually gather all the failed function-names by manually looking trough the list and run a deploy specifying only those.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有这样的自动重试选项。也许您可以编写代码来扫描日志以找出失败的原因并自行重试。或者,您也可以以受控速率为每个单独的函数调用 CLI 一次,并单独检查结果。
您这里的内容听起来像是一个功能请求,您可以将其发布到 firebase-tools GitHub回购。您还可以联系 Firebase 支持来表达您的需求。
There is no such option to automatically retry. Maybe you could write code to scan the logs to figure out what failed and retry yourself. Alternatively, you could instead invoke the CLI once for each individual function at a controlled rate, and check the results individually.
What you have here sounds like a feature request, which you could post to the firebase-tools GitHub repo. You could also reach out to Firebase support to make your needs known.