firebase - Cloud Scheduler 未使用 firebase deploy 命令自动创建
问题描述
当我使用firebase deploy
cron 函数部署 firebase 函数时,表示它已成功部署并且相关的 Cloud Scheduler 已创建。它会在 firebase 函数控制台中创建 firebase cron 条目,但会自动创建 Cloud Scheduler。此外,当我尝试手动创建这些调度程序时,它会给出错误:
Creating job "firebase-schedule-couponCronForExpiredCoupons-us-central1" failed: Unknown error
此外,我在此列表中看不到任何调度程序:https ://console.cloud.google.com/cloudscheduler
这是我的代码:
const couponCronForExpiredCoupons = functions.region("asia-east2").pubsub.schedule("* * * * *").timeZone("Asia/Kolkata").onRun(async () => {
console.log("----------couponCronForExpiredCoupons")
return null
})
我正在关注此文档https://firebase.google.com/docs/functions/schedule-functions
解决方案
推荐阅读
- python - Python中的数独游戏
- javascript - 未捕获的 SyntaxError:递归函数中的非法返回语句
- github - 使用 GitHub Actions(和 GitHub Package Registry)自动化构建和发布过程
- javascript - 如何使用此 java 脚本设置表头行?
- javascript - 如何解决这个 java-script 文件的引用错误?
- java - Eclipse 2019-09 连接到 Team Foundation Server 无限循环
- python - 获取'AttributeError:'_io.TextIOWrapper'对象在打开并读取文件后调用split时没有属性'split''
- javascript - 如何在 MEVN 堆栈应用程序中从 MongoDB 返回当前用户信息
- javascript - 这可以以更有效的方式完成(目前使用 puppeteer)吗?
- javascript - 如何将道具传递给来自不同来源的组件?