Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Firebase 重复云功能只在一天中的特定时段有效_Firebase_Cron_Google Cloud Platform_Google Cloud Functions - Fatal编程技术网

Firebase 重复云功能只在一天中的特定时段有效

Firebase 重复云功能只在一天中的特定时段有效,firebase,cron,google-cloud-platform,google-cloud-functions,Firebase,Cron,Google Cloud Platform,Google Cloud Functions,我的谷歌云功能应该每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:

我的谷歌云功能应该每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
{
  "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
}
package.json:

cron:


- description: Push a "tick" onto pubsub every 5 minute
  url: /publish/fivemins-tick
  schedule: every 5 mins
{
  "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
}
统计信息:


我想让它日夜运转。还有什么我应该提供的信息吗?

我达到了我的配额。检查日志中的所有日志后发现,我发现以下消息:

severity:  "DEBUG"  
 textPayload:  "Billing account not configured. External network is not accessible and quotas are severely limited. Configure billing account to remove these restrictions"  

我达到了我的配额。检查日志中的所有日志后发现,我发现以下消息:

severity:  "DEBUG"  
 textPayload:  "Billing account not configured. External network is not accessible and quotas are severely limited. Configure billing account to remove these restrictions"  

功能“日夜运行”意味着什么?它必须每5分钟、24小时、7天检查一次数据一个工具包看起来你已经这样设置好了,除非我遗漏了什么?如果我读对了图表,它每天只运行一部分?我发现我已经达到了我的配额。问题解决了。有一个功能“日夜运行”意味着什么?它必须每5分钟、24小时、7天检查一次数据一个工具包看起来你已经这样设置好了,除非我遗漏了什么?如果我读对了图表,它每天只运行一部分?我发现我已经达到了我的配额。问题解决了。