Reputation: 401
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"
I need equivalent GAE cron for those
Upvotes: 0
Views: 59
Reputation: 1659
You need to create a new file called cron.xml into WEB-INF folder. For example this cron runs the url indicated every 5 days, but you can also configure the schedule format.
<?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>
The complete reference is here:
https://cloud.google.com/appengine/docs/java/config/cron
Here examples about change schedule format:
https://cloud.google.com/appengine/docs/flexible/java/scheduling-jobs-with-cron-yaml
Upvotes: 1