我有一个php文件,它在web浏览器上运行良好,但作为cron作业失败了。
我的cron.yaml包括:
cron:
- description: new stuff
url: /crontest
schedule: every 1 hours
app.yaml有:
handlers:
- url: /crontest
script: crontest.php
login: admin
我的php文件中需要任何额外的要求吗?
如果您有多个不同代码的版本,那么版本或"target"是cron.yaml中的关键。