简体   繁体   English

计时器触发的Azure功能未在计划的时间触发,并且因Azure存储超时异常而失败

[英]Timer-triggered Azure Function not triggered on scheduled time and failed with Azure storage timeout exception

I have a V-1 time triggered Azure Function created from VS used to get data back from a service with estimated time 9 mins via HTTPCLIENT, it runs well locally, and using storage emulator. 我有一个从VS创建的V-1时间触发Azure功能,用于通过HTTPCLIENT从服务中获取数据,估计时间为9分钟,它在本地运行良好,并使用存储模拟器。 But when I published to Azure portal with App Service Plan, two problems arise: 1> Monitor tab not showing all executions, as there are more failed executions I can find if I go to Application Insights, plus the triggered time in Application Insights are not the scheduled time frequency(every 6 hrs I set) 2> Most of them failed with below snapshot. 但是当我使用App Service Plan发布到Azure门户时,会出现两个问题:1> Monitor选项卡没有显示所有执行,因为如果我转到Application Insights,我可以找到更多失败的执行,加上Application Insights中的触发时间不是预定的时间频率(我设置的每6小时)2>大多数都失败了以下快照。 System.TimeoutException System.TimeoutException

Any help would be really appreciated! 任何帮助将非常感激!

There is a suggestion in one of the Github issues, and the solution was to disable dashboard logging in the code using the following snippet: 其中一个Github问题有一个建议,解决方案是使用以下代码段禁用代码中的仪表板日志记录:

 var config = new JobHostConfiguration();
        config.DashboardConnectionString = null;

The full post can be viewed here 完整的帖子可以在这里查看

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM