How to schedule job in cron.xml in GAE such that j

2019-07-25 00:42发布

I want to schedule a job in GAE using cron.xml. My requirement is something like this: Every 5 hours from 6:00 am on Saturday.

1条回答
叼着烟拽天下
2楼-- · 2019-07-25 01:14

The Schedule format doesn't support such schedule specification.

But you can use a schedule which contains part of your specification and complete the rest inside the scheduled job itself.

For example, you can use a cron schedule like every 5 hours from 6:00 to 0:00 and inside the scheduled job 1st thing you do is check today's day and exit if it's not Saturday.

查看更多
登录 后发表回答