June 2018
Intermediate to advanced
372 pages
8h 44m
English
The App Engine Cron service takes you one step closer to automation by allowing you to schedule tasks at certain times or at regular intervals. Such tasks are known as cron jobs. These can invoke a URL by using an HTTP GET request. To use cron, you need to put a cron.yaml file in the root directory of your application, which might look something as follows:
cron:- description: "daily task"url: /tasks/daily schedule: every 24 hours- description: "weekly task" url: /mail/weekly schedule: every monday 09:00 timezone: Australia/NSW target: beta
As can be seen in the example, URL and schedules are mandatory jobs of cron files, whereas description, timezone, target, and so on are optional ones.
The schedule syntax ...
Read now
Unlock full access