Azure Webjobs输出日志索引需要很长时间 [英] Azure webjobs output logs indexing taking very long

查看:56
本文介绍了Azure Webjobs输出日志索引需要很长时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个频繁运行的触发网络作业(每3分钟一次),另外一些则每周/每天触发一次,有些则连续运行.

I have a frequently running triggered webjob (every 3 minutes) and others that are triggered weekly/daily and some running continuously.

如果我访问 https://xxxx.scm.azurewebsites.net/azurejobs/#/functions 该站点在尝试加载和索引函数调用时会花费很多时间,而这些调用却被频繁工作的输出所淹没.

If I visit https://xxxx.scm.azurewebsites.net/azurejobs/#/functions the site takes forever to load as it tries to load and index function invocations and these get overwhelmed by the output from the frequent job.

我的问题:

  • 如何设置特定Web作业的日志记录保留时间?
  • 我写到控制台的所有内容都显示在Webjob运行详细信息页面中,但TextWriter中没有任何内容.由于两个输出似乎都保持不变,因此推荐的方法是
  • How can I set the logging retention for a particular webjob?
  • Anything I write to the console shows up in the Webjob run details page but nothing from the TextWriter. Since both outputs seem to get persisted, which is the recommended way?

推荐答案

  1. 当前无法设置保留策略.对不起.请随时在此处打开错误: https://github.com/Azure/azure-webjobs-sdk
  2. 控制台消息最终出现在webjob日志(顶级作业)中. TextWriter消息最终出现在函数调用日志中.如果您写到控制台,则还存在一个并发问题,因为可以同时运行多个功能,因此日志可能会混在一起.

这篇关于Azure Webjobs输出日志索引需要很长时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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