代码之家  ›  专栏  ›  技术社区  ›  Drux

谷歌云功能GitHub auto deployer表示:服务超时

  •  1
  • Drux  · 技术社区  · 8 年前

    在克服 previous problem 使用Google云功能GitHub auto deployer,我现在观察到GitHub报告的webhook错误:

    We couldn’t deliver this payload: Service Timeout 
    

    假设自GitHub的最大webhook超时时间为 shortened to 10 seconds 早在9月份,它就太短了,无法成功部署谷歌云功能?如果是,可以 githubAutoDeployer 是否仍以可靠的方式提供服务?

    使用“手动”部署功能时获得以下指示 gcloud beta functions deploy 似乎相关:

    Deploying function (may take a while - up to 2 minutes)
    
    1 回复  |  直到 8 年前
        1
  •  1
  •   VonC    8 年前

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

    如果是这样,githubAutoDeployer还能以任何可靠的方式提供服务吗?

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