如何每小时为 google 云应用引擎制作一个 cron.yaml 文件到 运行 python 脚本
How can I make a cron.yaml file to run python script every hour for google cloud app engine
所以我的 cron.yaml:
cron:
- description: "Google analytics data collection"
url: /usr/bin/python3.7 /home/amng853/ruby-website/google_analytics_info.py
schedule: every 1 hours
但它不断返回:
ERROR: (gcloud.app.deploy) Server responded with code [500]:
Internal Server Error.
<h3>Server Error</h3><p>A server error has occurred.</p>
当我部署 cron.yaml 时,我不知道该怎么做。
我也尝试使用 python3 而不是 python3.7 路径,但仍然显示错误。 (是的,我安装了 python3.7 和 python3)
一般情况下你不能这样做。您需要创建端点,然后 运行 即 url.
所以我的 cron.yaml:
cron:
- description: "Google analytics data collection"
url: /usr/bin/python3.7 /home/amng853/ruby-website/google_analytics_info.py
schedule: every 1 hours
但它不断返回:
ERROR: (gcloud.app.deploy) Server responded with code [500]:
Internal Server Error.
<h3>Server Error</h3><p>A server error has occurred.</p>
当我部署 cron.yaml 时,我不知道该怎么做。
我也尝试使用 python3 而不是 python3.7 路径,但仍然显示错误。 (是的,我安装了 python3.7 和 python3)
一般情况下你不能这样做。您需要创建端点,然后 运行 即 url.