The easyCron service is a cloud based scheduler for recurrent jobs. Google Apps Script has it’s own scheduler for triggering tasks, but you may prefer the management capabilities with easyCron. You have to sign up, but there is a free plan too.

The library

You’ll find it here if you want to fork it, or you can include this resource

MjbiRDgq07ZNFaXn0OEKX-yz3TLx7pV4j

The API

EasyCron has a fairly straightforward API. This library provides a simple interface to it from GAS. I personally don’t use it, but following a few posts on the subject in the Google Apps Script community I thought I may as well create this for others to use. Please provide feedback via Google Apps Script community if you find it useful or otherwise.

Example

Before you start you should store your API key in your property service, as the example below. Here is how to schedule running a GAS webapp everyday at 12:30. It uses cron expressions which you can read about here.

and here’s what it looks like on the easyCron console


Here’s some more methods available in the library

Code from library

cEasyCron created by GitJsonApi
https://github.com/brucemcpherson/cEasyCron
0 forks.
1 stars.
0 open issues.
Recent commits:

For more like this see Google Apps Scripts Snippets
For help and more information join our forum,follow the blog or follow me on Twitter.