views:

42

answers:

2

Hey guys,

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 i deploy the project and the cronjob runs it fails.

Any ideas?

Thanks a lot.

A: 

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.

Peter Recore
+3  A: 

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.

Nick Johnson