I have spring cron equation.
I need equivalent GAE cron for those.
GAE cron doc seems bit complex.
cron="0 0 7 * * MON-FRI"
cron="0 30 9 * * "SUN"
我需要等效的GAE cron
答案 0 :(得分:1)
您需要在WEB-INF文件夹中创建一个名为cron.xml的新文件。例如,此cron运行每5天指示的URL,但您也可以配置计划格式。
<?xml version="1.0" encoding="UTF-8"?>
<cronentries>
<cron>
<url>/url</url>
<description>Information about cron job</description>
<schedule>every 24 hours</schedule>
</cron>
</cronentries>
完整的参考资料如下:
https://cloud.google.com/appengine/docs/java/config/cron
此处有关更改计划格式的示例:
https://cloud.google.com/appengine/docs/flexible/java/scheduling-jobs-with-cron-yaml