TimerTrigger没有触发 [英] TimerTrigger Not Firing

查看:159
本文介绍了TimerTrigger没有触发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  1. 您使用的是消费还是应用服务计划:消费

  2. 如果消费,你是如何部署的?如果是App Service Plan,您是否启用了Always On?
    通过GitHub部署。门户网站显示部署成功。
  3. 您使用的是v1运行时还是v2(预览版)运行时? 2
  4. 您是否正在设置  WEBSITE_TIME_ZONE
    是"东部标准时间"
  5. 您的CRON表达式设置为什么,以及您对其含义的期望是什么。例如"我希望它能在每个星期四14:17开火"。在某些情况下,用户只是误解了CRON语法,对特定表达式的语义有不正确的期望
    0 * / 5 * * * *应该每5分钟运行一次。
  6. 给出您希望调用函数的特定UTC时间,并发现它不是。另外,解释你如何确定它没有被调用。如果在某些情况下,可能会调用该函数,但由于某些日志记录问题导致
    ,因此可能并不明显。 选择一个时间...当天的任何5分钟间隔。它将继续运行,并且现在正在运行。
  7. 最重要的是,包含一个示例调用ID,以便我们找到您的应用并查看问题。请按照这些说明进行操作,了解如何分享此信息。
    我无法运行它,我得到一个例外,就像它试图执行HTTP操作一样。我找到了一个较旧的日志...


    调用ID: 
    a8f9d52d-6d40-45c1-973b-5738abfc1c59

    活动时间: 
    4/22/2019 ,11:05:22 AM

    地区: 
    East US 2
  1. Are you using Consumption or App Service Plan: Consumption
  2. If Consumption, how did you deploy? If App Service Plan, do you have Always On enabled? Deployment via GitHub. The portal shows the deployments as being successful.
  3. Are you using the v1 runtime, or the v2 (Preview) runtime? 2
  4. Are you setting WEBSITE_TIME_ZONE? Yes to "Eastern Standard Time"
  5. What is your CRON expression set to, and what is your expectation about what it means. e.g. state "I expect it to fire every thursday at 14:17". In some cases, users just misunderstand the CRON syntax, and have incorrect expectations about the semantics of a particular expression: 0 */5 * * * * should run every 5 minutes.
  6. Give a specific UTC time at which you expected your function to get called, and found that it wasn't. Also, explain how you are determining that it is not getting called. If some cases, the function may get called, but it may not be obvious due to some logging issue. Pick a time... any 5 minute interval on the current day. It's set to continually run, and is showing as running now.
  7. And most importantly, include a sample invocation ID so we can find your app and look into the issue. Follow these instructions to see how to share this. I can't run it, I get an exception like its trying to perform an HTTP operation. I did find an older log...
    Invocation Id: 
    a8f9d52d-6d40-45c1-973b-5738abfc1c59
    Event Time: 
    4/22/2019, 11:05:22 AM
    Region: 
    East US 2

TimerTrigger在约。 19年4月23日。当我在本地调试Azure功能时它工作正常。

我尝试点击门户中的刷新按钮,许多停止/启动...没有变化。它似乎坚持认为它是一个HttpTrigger。

The TimerTrigger stopped firing on approx. 4/23/19. When I debug the Azure function locally it works fine.
I did try clicking the refresh button in the portal, and many stop / starts... no change. It seems to be stuck on thinking its an HttpTrigger.









>

推荐答案

对应于  Invocation Id:  a8f9d52d-6d40-45c1-973b-5738abfc1c5 9

4月23日TrelloAutoNumber函数的日志。  运行  成功

2019-04-23T23:40:00.0101598+00:00
 2019-04-23T23:35:00.0178701+00:00
 2019-04-23T23:30:00.0089641+00:00
 2019-04-23T23:25:00.0214892+00:00
 2019-04-23T23:20:00.0050508+00:00
 2019-04-23T23:15:00.0090766+00:00
 2019-04-23T23:10:00.0080770+00:00
 2019-04-23T23:05:00.0024426+00:00
 2019-04-23T23:00:00.0134400+00:00
 2019-04-23T22:54:59.9971237+00:00

4月24日TrelloAutoNumber函数的日志。运行成功。

Logs for TrelloAutoNumber function for 24th April. Run successfully.

2019-04-24T23:40:00.0058330+00:00
 2019-04-24T23:34:59.9994367+00:00
 2019-04-24T23:30:00.0087240+00:00
 2019-04-24T23:25:00.0138285+00:00
 2019-04-24T23:20:00.0098177+00:00
 2019-04-24T23:15:00.0193984+00:00
 2019-04-24T23:10:00.0177259+00:00
 2019-04-24T23:05:00.0058970+00:00
 2019-04-24T23:00:00.0091915+00:00
 2019-04-24T22:55:00.0095376+00:00




从第23天和第24天开始,  我们检测到您使用默认设置  记录
采样启用
  for Application Insights。  这个
可能会导致显示器日志中缺少执行日志。
 

From 23rd and 24th Logs, We have detected that you are running with the default setting of logging sampling enabled for Application Insights. This could cause missing execution logs from your monitor logs. 

您可能只需调整采样设置以适合您的特定监控方案。 
查看此指南以配置抽样。














这篇关于TimerTrigger没有触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆