Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/google-app-engine/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google app engine 如何在2021年增加gcloud应用程序部署超时_Google App Engine_Google Cloud Build - Fatal编程技术网

Google app engine 如何在2021年增加gcloud应用程序部署超时

Google app engine 如何在2021年增加gcloud应用程序部署超时,google-app-engine,google-cloud-build,Google App Engine,Google Cloud Build,这个问题已经解决了,但他们在2021年1月不再在这里工作。所有这些答案都有三种口味: 使用类似于gcloud config Set app/cloud\u build\u timeout 1600的内容设置本地计算机超时,然后使用gcloud app deploy… 在gcloud app deploybuildstep和全局配置中使用cloudbuild.yaml文件代替timeout:1600s位,然后使用gcloud builds submit… ,不要在cloudbuild文件中设置ti

这个问题已经解决了,但他们在2021年1月不再在这里工作。所有这些答案都有三种口味:

  • 使用类似于
    gcloud config Set app/cloud\u build\u timeout 1600的内容设置本地计算机超时,然后使用
    gcloud app deploy…
  • gcloud app deploy
    buildstep和全局配置中使用
    cloudbuild.yaml
    文件代替
    timeout:1600s
    位,然后使用
    gcloud builds submit…
  • ,不要在cloudbuild文件中设置
    timeout:1600s
    ,而是使用包含
    args:['-c',gcloud config set app/cloud\u build\u timeout 1600&&gcloud app deploy']的构建步骤将前两种风格混搭起来。
  • 它们都不会对
    应用程序部署
    构建产生任何影响-它停留在10分钟。使用
    gcloud builds submit
    时,将启动两个云构建:一个用于cloudbuild.yaml,另一个用于使用buildpack的应用程序引擎部署。上述解决方案可能会影响第一次构建,但一旦第一次构建启动第二次构建(
    gcloud app deploy
    ),您可以在“执行详细信息”选项卡中看到,超时仍然为10m


    在我看来,解决方案2-3是黑客攻击,因为1不起作用,但现在2-3也不起作用了,我正在寻找另一个黑客攻击。有没有人有一个在2021年起作用的解决方案?因为我的应用程序使用的是GAE标准环境,我不能预建一个映像-我一直在用Buildpack构建我的ruby应用程序,每次都要挖掘所有的精华,而这不会用完他似乎是一个固定的10米时钟。

    您无法更改App Engine standard中的超时属性,它总是10分钟。解决方法是使用App Engine flex,这样您就可以使用
    gcloud配置集App/cloud\u build\u timeout TIME\u SECONDS

    对于应用程序引擎标准,有一个启用超时编辑的选项,但似乎仍在进行中