Reputation: 35
I have the following code:
exports.warmFunctions = functions.pubsub.schedule('every 2 minutes').onRun((context) => {
//call http.onCall teste2
})
exports.teste2 = functions.https.onCall((data, context) => {
console.log(''+data)
})
Is there any way to call the 'test2' function from pubsub.schedule? Any help I appreciate
Upvotes: 1
Views: 183
Reputation: 317467
You can invoke the function according to the specification for callable functions that you see in the documentation. There are no provided libraries for callable functions for nodejs, so you will have to write something yourself using what you see in the linked documentation. It is just an HTTP function with additional protocol surrounding it.
Upvotes: 1