为 Firebase 的 Cloud Functions 设置超时不会保留在控制台中;这是一个错误吗? [英] Set timeout for Cloud Functions for Firebase does not persist in the Console; is this a bug?

查看:15
本文介绍了为 Firebase 的 Cloud Functions 设置超时不会保留在控制台中;这是一个错误吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新:我更新了问题,以反映我在问题正文中描述的内容以及当时发生的情况.这也证明了为什么我没有将 Sanyam 的回答标记为正确.控制台中存在一个错误,导致超时值是短暂的.@MichaelBleigh 的回复是最中肯的,当问题得到解决时会通知我.

我有一个 Cloud Functions 函数,它在某些极端情况下需要运行超过默认的 60 秒超时.

I have a Cloud Function that needs to run past the default 60 second timeout in some edge-cases.

问题是,虽然可以在 Google Cloud Developer Console 的 Cloud Functions 部分更改此值,但每次部署后都会恢复为原始默认值.

The issue is, while this value can be changed in the Cloud Functions section of the Google Cloud Developer Console, it reverts to the original default after each deploy.

有没有办法可以保留对此设置的更改,也许是在 Firebase 配置文件之一中?

Is there a way I can persist the changes to this setting, perhaps in one of the Firebase configuration files?

推荐答案

可以在此处更改默认超时时间 https://console.cloud.google.com/functions/list
选择函数 >测试函数 > edit > timeout

Default timeout can be changed here https://console.cloud.google.com/functions/list
select function >test function > edit > timeout

这篇关于为 Firebase 的 Cloud Functions 设置超时不会保留在控制台中;这是一个错误吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆