gpt4 book ai didi

Azure WebJob 悄然终止 - 任何日志中均无任何内容

转载 作者:行者123 更新时间:2023-12-03 04:31:29 24 4
gpt4 key购买 nike

我有一个带有 QueueTrigger 的 Azure WebJob,该作业一直在运行。现在它的失败消息比例很高。失败将进入有害消息队列,但不会报告其他错误。故障不会出现在 webjobs 仪表板中,输出窗口中不会出现错误。如果我在 Debug模式下本地运行 webjob,同样的事情。所有成功消息都会显示并显示为成功。失败只是鬼魂。他们似乎只是直接走向毒药。所有消息都基于相同的 POCO 类,并且消息本身中没有任何内容看起来格式错误。我过去曾遇到过这个网络作业的问题,但它总是在某个地方显示错误。我找不到任何消息来指引我正确的方向。

更新:我拿走了网络作业并删除了几乎所有代码......只是为了看看会发生什么。它对每条消息都有效。我的代码中现在没有任何 try/catch block 来阻止异常或其他错误的出现。为什么作业会悄无声息地消亡(但只是部分时间)?

最佳答案

我怀疑这可能与此有关:

Do I need to rethink how I write my functions? Overall, no, things work pretty much the same as before, with just one less setting to worry about. The same limits that applied before still apply: 1.5GB max memory and a 5-minute max execution time. The biggest impact that this change has is that you now are assured to be getting the right amount of resources and paying the least amount possible for your function executions.

That snippet was taken from this link.

关于Azure WebJob 悄然终止 - 任何日志中均无任何内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36052751/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com