Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

pub schedule firebase

import {EventContext} from 'firebase-functions';
// There is an allowance of three free jobs per Google account
//  For example, to run a function every five minutes with 
//  AppEngine cron.yaml syntax, do something like this:
export const scheduledFunction = 
      functions.pubsub.schedule('every 5 minutes').onRun(
          (context: EventContext) => {
            console.log('This will be run every 5 minutes!');
            return new Promise();
     });
Source by cloud.google.com #
 
PREVIOUS NEXT
Tagged: #pub #schedule #firebase
ADD COMMENT
Topic
Name
2+4 =