GoogleCloudPlatform / app-gradle-plugin

The library has moved to https://github.com/GoogleCloudPlatform/appengine-plugins/tree/main/app-gradle-plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

2.0.1 - App Engine Standard - appengineDeploy with promote=true almost never terminates

codeconsole opened this issue · comments

2.0.1 using standard environment

apply plugin: "com.google.cloud.tools.appengine-appenginewebxml"

Plugin works great. It takes me around 30 seconds to deploy and successfully stops the previous version. However, if I have promote=true, and almost never terminates EVEN when it is deploying to the SAME version number. I have it successfully finish once in 2 minutes, but that was rare.

If I set promote to false, it takes 30 seconds and the same thing is accomplished because it is deploying to the same version number.

Perhaps a feature to where promote is true, but it will not wait would be nice?
On the server side, the split works right away, but gradle still hangs.

Beginning deployment of service [default]...
#============================================================#
#= Uploading 0 files to Google Cloud Storage                =#
#============================================================#
File upload done.
Updating service [default]...
............................................................done.
Setting traffic split for service [default]...
<============-> 94% EXECUTING [19m 5s]
> :default:appengineDeploy

It eventually fails, but after TWENTY minutes.

Beginning deployment of service [default]...
#============================================================#
#= Uploading 0 files to Google Cloud Storage                =#
#============================================================#
File upload done.
Updating service [default]...
............................................................done.
Setting traffic split for service [default]...
.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................failed.
ERROR: (gcloud.app.deploy) Error Response: [14] Delays were encountered while waiting for traffic split/default version changes to apply.  The requested changes will eventually apply, but may take some time.
> Task :default:appengineDeploy FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':default:appengineDeploy'.
> com.google.cloud.tools.appengine.AppEngineException: com.google.cloud.tools.appengine.operations.cloudsdk.process.ProcessHandlerException: com.google.cloud.tools.appengine.AppEngineException: Non zero exit: 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 20m 34s
commented

@loosebazooka I never used this feature with older versions.
It is really hit or miss. Deployment is always fast though. Waiting for split is the problem.

commented

hrmm... think you might have to file a bug directly with the appengine team: https://issuetracker.google.com/savedsearches/559750

ludoch@ any ideas?