Last active
September 5, 2019 09:30
-
-
Save michelepatrassi/278c1668edd979c8f15507339213f28b to your computer and use it in GitHub Desktop.
Cloud Function cron
This file contains 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
import * as functions from 'firebase-functions'; | |
const CRON_SCHEDULE = '* * * * *'; | |
export const cronMailchimp = functions.region('europe-west1').pubsub | |
.schedule(CRON_SCHEDULE).onRun(async context => { | |
console.log(`I will write this every minute`) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment