Last active
May 8, 2019 13:04
-
-
Save jthegedus/3da57de99dac624f387fe9d34c8c2dc8 to your computer and use it in GitHub Desktop.
jthegedus|firebase-cron-cloud-functions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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