我的google云功能功能应该每5分钟重复一次。 它仅适用于一天中的特定时段(未在我的设置中指定该行为)。 这是由cron作业触发的代码:
exports.fivemins_job =
functions.pubsub.topic('fivemins-tick').onPublish((event) => {
console.log("This job is ran every 5 minutes!")
});
cron.yaml:
cron:
- description: Push a "tick" onto pubsub every 5 minute
url: /publish/fivemins-tick
schedule: every 5 mins
的package.json:
{
"name": "functions",
"description": "Cloud Functions for Firebase",
"dependencies": {
"@google-cloud/storage": "^0.4.0",
"child-process-promise": "^2.2.0",
"firebase-admin": "^4.1.2",
"firebase-functions": "^0.5"
},
"private": true
}
我想让它一整天都在运行。我应该提供更多信息吗?
答案 0 :(得分:2)
我达到了我的配额。在检查了日志中的所有日志后找到了,我发现了以下消息:
severity: "DEBUG"
textPayload: "Billing account not configured. External network is not accessible and quotas are severely limited. Configure billing account to remove these restrictions"