简体   繁体   中英

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. 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. 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:

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

The full post can be viewed here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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