![](/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.