Google App Engine python37忽略了入口点

问题描述 投票:2回答:1

从昨天开始,GAE无视我在entrypointapp.yaml

我的app.yaml

runtime: python37

entrypoint: gunicorn -k eventlet -b :$PORT main:app

导致以下日志输出:

2019-04-24 07:39:58 default[20190423t203005]  [2019-04-24 07:39:58 +0000] [8] [INFO] Starting gunicorn 19.9.0
2019-04-24 07:39:58 default[20190423t203005]  [2019-04-24 07:39:58 +0000] [8] [INFO] Listening at: http://0.0.0.0:8081 (8)
2019-04-24 07:39:58 default[20190423t203005]  [2019-04-24 07:39:58 +0000] [8] [INFO] Using worker: threads

但工人应该是eventlet而不是threads

python google-app-engine google-cloud-platform
1个回答
0
投票

就我们所知,这实际上是Google App Engine的一个问题。正在忽略已配置的入口点。事件昨天开始。我们最好的猜测是由于在部署期间配置gvisor容器的入口点的过程更新(可能是App Engine或gVisor破坏它)引起的。

如果更改日志以显示所有日志:

Click the dropdown called 'stderr,appengine.google...' and select 'All Logs'

你会看到执行入口点总是:

Running /bin/sh /bin/sh -c exec gunicorn main:app --workers 1 -c /config/gunicorn.py

我们正在提交一张票。如果可以的话,你也应该这样做。

© www.soinside.com 2019 - 2024. All rights reserved.