![](/img/trans.png)
[英]Is there a way to run a Google App engine cron task without hitting an endpoint but rather pointing cron.yaml at a python script?
[英]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。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.