如何使用python GAE应用程序处理ah/start?

如何使用python GAE应用程序处理ah/start?,python,google-app-engine,google-cloud-platform,Python,Google App Engine,Google Cloud Platform,我必须更改我的GAE应用程序上的缩放类型以处理长时间运行的请求 但现在应用程序已停止响应,我看到的是: 2021-04-09 01:22:59 default[20210409t011947] "GET /_ah/start HTTP/1.1" 200 2021-04-09 01:22:59 default[20210409t011947] "GET /_ah/start HTTP/1.1" 200 2021-04-09 01:23:00 defaul

我必须更改我的GAE应用程序上的缩放类型以处理长时间运行的请求

但现在应用程序已停止响应,我看到的是:

2021-04-09 01:22:59 default[20210409t011947]  "GET /_ah/start HTTP/1.1" 200
2021-04-09 01:22:59 default[20210409t011947]  "GET /_ah/start HTTP/1.1" 200
2021-04-09 01:23:00 default[20210409t011947]  "GET /_ah/start HTTP/1.1" 200
2021-04-09 01:23:00 default[20210409t011947]  "GET /_ah/start HTTP/1.1" 200
我明白我是这样做的:

@app.route('/_-ah/start')
def startup():
''应用程序启动''
logging.info('handle\u ah/start')
返回{
“状态”:“确定”,
'msg':'boot'
}
但我从来没有看到端点真的被调用过。相反,我只是得到日志,好像我没有回应它

经过一番挖掘之后,我发现我在谈论如何在实例之间切换流量,并使用
--promote
进行切换,但不起作用


main.py
有一些应该在启动时显示的日志记录,但我什么也没看到。

原来有一个前端代理截获了事件

你能分享你的app.yaml吗?它的固定地址tx.与代理的URL配置有关