Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Google App Engine

You're reading from   Mastering Google App Engine Build robust and highly scalable web applications with Google App Engine

Arrow left icon
Product type Paperback
Published in Oct 2015
Publisher
ISBN-13 9781784396671
Length 368 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Scheduled tasks


There are certain things that we want to do regularly over fixed intervals, such as processing some items, downloading new data from some source, or something on those lines. The typical way to do that in Unix/Linux systems is called cron job. In a cron job, you indicate a program or a script and a schedule on which it is supposed to run. Just like a timer or an alarm clock, this will be regularly executed for you at the specified intervals.

This kind of feature is also available in Google App Engine and is called Scheduled tasks. However, the processing model is slightly different in the Unix/Linux cron jobs, including the format of how we define a schedule. These definitions are specified in a file called cron.yaml in the root directory of your application, and it gets automatically uploaded with each application deployment.

In cron.yaml, you can define multiple cron entries. Each entry must define at least the following things:

  • url: Instead of a program or a script, you...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime