谷歌云功能GitHub自动部署程序说:服务超时

时间:2017-12-31 16:50:09

标签: github google-cloud-functions webhooks

在使用Google Cloud Functions GitHub自动部署程序克服previous problem之后,我现在正在观察GitHub针对其webhook报告的此错误:

We couldn’t deliver this payload: Service Timeout 

从9月开始假设自GitHub的最大webhook超时时间为shortened to 10 seconds是否正确,现在它对于成功部署Google Cloud Functions来说太短了?如果是这样,githubAutoDeployer仍然可以以任何可靠的方式提供服务吗?

在部署功能时获得以下指示"手动"与gcloud beta functions deploy似乎相关:

Deploying function (may take a while - up to 2 minutes)

1 个答案:

答案 0 :(得分:1)

  

假设自9月以来GitHub的最大webhook超时时间缩短到10秒是否正确,现在对于成功部署Google Cloud Functions来说太短了?

  

如果是这样,githubAutoDeployer仍能以可靠的方式服务吗?

不,考虑到这是一个针对(auto-deployer/index.js) returning the result for each deployment的同步过程 您需要重写index.js以使进程不同步,立即返回但丢失部署状态。