1
我试图在App Engine中设置一个通过云端点方法执行GET请求的cron作业。cron.xml中的云端点URL App Engine
我与@API注释
@ApiMethod(name = "cron.test", path="cron/test", httpMethod = HttpMethod.GET)
public void testCron() {
... // do something
}
在cron.xml我设置创建GET方法中的端点类:
<cronentries>
<cron>
<url>/_ah/api/MYAPI/v1/cron/test</url>
<description>Send nightly reports.</description>
<schedule>every 1 minutes</schedule>
<timezone>America/Los_Angeles</timezone>
</cron>
</cronentries>
在App Engine管理员
Cron作业视图面板显示cron试图执行但失败。我究竟做错了什么?端点方法的URL是否错误?
bossylobster,你可以给一些来自cron的调用端点方法的示例吗? –