檔案提到 using .runWith({memory: "1GB"})
,但是如何將此選項與這樣的預定功能一起使用:
functions.pubsub.schedule('every 10 minutes').onRun(async (context) => {
console.log("Do something");
});
uj5u.com熱心網友回復:
只需執行以下操作:
functions.runWith({memory: "1GB"}).pubsub.schedule('every 10 minutes').onRun(async (context) => {
console.log("Do something");
// Don't forget to return a Promise if necessary!!
// See https://firebase.google.com/docs/functions/terminate-functions
});
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/486576.html
標籤:javascript 节点.js 火力基地 谷歌云功能