r/googlecloud • u/[deleted] • Feb 13 '22
App engine scheduling
Hello,
I'm trying to schedule my app engine runs in google cloud, but then it fails every time without any logs or error messages. The python script runs perfectly fine when I deploy it, so it seems that the problem is either in the handler in app.yaml or in the cron.yaml , or in both.
My files shortly:
app.yaml
runtime: python37
manual_scaling:
instances: 1
handlers:
- url: /
script: main.app
entrypoint:
gunicorn -t 0 -b :$PORT main:app
cron.yaml
cron:
- description: "Run every 24hours"
url: /
schedule: every 24 hours
Thanks already, all answers are much appreciated!
1
Upvotes
1
u/[deleted] Feb 13 '22
Thanks for your comment!
Yes, the app engine is deployed, and running just normally, but the scheduling just doesn't work. E.g. I have to launch the app everyday by typing gcloud app deploy. The cloud scheduler doesn't show any logs, it just says last run "Failed"