Skip to content

Instantly share code, notes, and snippets.

@jthegedus
Last active May 8, 2019 13:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jthegedus/3da57de99dac624f387fe9d34c8c2dc8 to your computer and use it in GitHub Desktop.
Save jthegedus/3da57de99dac624f387fe9d34c8c2dc8 to your computer and use it in GitHub Desktop.
jthegedus|firebase-cron-cloud-functions
const functions = require('firebase-functions');
exports.englishSyntax = functions.pubsub
.schedule('every 10 minutes')
.timeZone('Australia/NSW')
.onRun(context => {
console.log('triggered every 10 minutes', context);
});
exports.cronSyntax = functions.pubsub
.schedule('5 * * * *')
.timeZone('Pacific/Auckland')
.onRun(context => {
console.log('triggered every 5 minutes', context);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment