[英]How can I make a cron.yaml file to run python script every hour for google cloud app engine
So I have this in my cron.yaml:所以我在我的 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
but it keeps returning:但它不断返回:
ERROR: (gcloud.app.deploy) Server responded with code [500]:
Internal Server Error.
<h3>Server Error</h3><p>A server error has occurred.</p>
when I deploy the cron.yaml and I don't know what to do.当我部署 cron.yaml 时,我不知道该怎么做。
I also tried to user python3 instead of python3.7 path but still displays the error.我还尝试使用 python3 而不是 python3.7 路径,但仍然显示错误。 (Yes I have python3.7 and python3 installed)
(是的,我安装了 python3.7 和 python3)
In general you can not do this.一般来说,你不能这样做。 You need to create endpoint, and then run that url.
您需要创建端点,然后运行该 url。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.