开发者

cronjob googleAppEngine run script?

开发者 https://www.devze.com 2022-12-14 15:57 出处:网络
I\'ve setup a GAE cronjob. My cron.yaml looks like this cron: - description: checkForPush url: /cron/ schedule: every 1 minutes

I've setup a GAE cronjob. My cron.yaml looks like this

cron:
- description: checkForPush
  url: /cron/
  schedule: every 1 minutes

Inside the cron folder i've got a cron.py file with an URL-Fetch. If开发者_StackOverflow i deploy the project and the cronjob runs it fails.

Any ideas?

Thanks a lot.


Your app.yaml declaration is for the url '/cron', but your cron.yaml is requesting '/cron/'. You need to change them so they both use the same path.


What happens if you go to /cron/ with a browser? Do you also get a 404? If so, then your problem probably isn't with your cron setup but with your script.

0

精彩评论

暂无评论...
验证码 换一张
取 消