Q. Is there a guaranteed max time limit for a Cloud function to execute? considering the occasional cold starts

邮差的信 提交于 2021-01-29 07:31:43

问题


I'm using Google dialogflow to make a Whatsapp Chatbot for a retail store. I'm using cloud functions to carry out certain operations such as create orders, fetch available products, which are common between other endpoints such as websites and apps.

As cloud functions undergo cold starts, sometimes the cloud functions take long to respond and dialogflow fails in giving a response as it has a max response time of 5 seconds.

Is there any upper limit on the time a cloud function can take to execute? If not, how do i handle this issue in dialogflow.


回答1:


As per the official GCP documentation,

Function execution time is limited by the timeout duration, which you can specify at function deployment time. By default, a function times out after 1 minute, but you can extend this period up to 9 minutes.



来源:https://stackoverflow.com/questions/64046366/q-is-there-a-guaranteed-max-time-limit-for-a-cloud-function-to-execute-conside

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!