使用谷歌云端点进行cron作业

时间:2021-12-29 22:55:28

As per https://cloud.google.com/appengine/docs/java/config/cron?hl=en#Java_calling_google_cloud_endpoints You cannot reference a cloud endpoint directly with a cron job. You must reference a jsp or other file which then calls the endpoint. Ive done some tinkering in jsp, but I cannot get anythign referencing my endpoint to compile and nothing useful shows in the errorlog to help me trace.

根据https://cloud.google.com/appengine/docs/java/config/cron?hl=zh-CN#Java_calling_google_cloud_endpoints您无法直接使用cron作业引用云端点。您必须引用一个jsp或其他文件,然后调用该端点。我已经在jsp中做了一些修补,但是我无法让任何引用我的端点进行编译,并且在错误日志中没有任何有用的显示来帮助我跟踪。

so, if I have endpoint

所以,如果我有端点

myEp

myEp

and I want a cron to work calling myEp("x","y",z");

我想让一个cron工作调用myEp(“x”,“y”,z“);

how can I achieve this in java using an appengine backend? Any code to help would be a lifesaver. I understand how to build the cron xml file, it is the page it references that has me lost.

我如何使用appengine后端在java中实现这一点?任何帮助的代码都是救命稻草。我理解如何构建cron xml文件,它引用的页面让我迷失了。

1 个解决方案

#1


0  

Probably late, but this, will may be help someone : Episode 9: Using the Cron Service to run scheduled tasks

可能很晚,但是,这可能会帮助某人:第9集:使用Cron服务运行计划任务

#1


0  

Probably late, but this, will may be help someone : Episode 9: Using the Cron Service to run scheduled tasks

可能很晚,但是,这可能会帮助某人:第9集:使用Cron服务运行计划任务