我要创建的功能具有每1分钟刷新一次的功能
但是当我尝试在下面编写代码时,我在CMD上出错了
const functions = require('firebase-functions');
exports.scheduledFunction = functions.pubsub.schedule('every 1 minutes').onRun((context) => {
console.log('This will be run every 1 minutes!');
});
编写Firebase部署时CMD
Error: HTTP Error: 400, Billing must be enabled for activation of service '[cloudscheduler.googleapis.com]' in project '45545844354(fake number)' to proceed.
我访问cloud scheduler时收到错误消息
Failed to load
关于云调度程序,我应该为此服务付费,多少钱?
我只希望每天运行2个功能
答案 0 :(得分:0)
该消息告诉您需要为此项目启用计费方式。请阅读documentation about scheduled functions了解更多信息。显然,您需要使用Blaze计费计划,其费用是多少。