Dan
Dan

Reputation: 69

Cron Jobs on GAE with PHP

I have a php file that runs fine from a web browser but fails as cron job.

My cron.yaml includes:

cron:
- description: new stuff
  url: /crontest
  schedule: every 1 hours

and app.yaml has:

handlers:
- url: /crontest
  script: crontest.php
  login: admin

Any extra requirements needed in my php file?

Upvotes: 0

Views: 96

Answers (1)

Dan
Dan

Reputation: 69

So versions, or "target" is key in cron.yaml if you have multiple versions with different code.

Upvotes: 1

Related Questions