Azure的Webjobs SDK中删除邮件时,有一个绑定失败 - 错误? [英] Azure Webjobs SDK is deleting a message when there is a binding failure - Bug?

查看:237
本文介绍了Azure的Webjobs SDK中删除邮件时,有一个绑定失败 - 错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ASP.NET Webjobs错误地在一个队列中删除的消息时,有一个结合失败。
正确的方法应该是,该消息不会被删除,并重新出现后,再次处理的可见性超时。

下面是调用日志

 在PID运行:6424
时间戳:10:02:27 PM
参数约束。调用用户功能。
--------
--------
异常而执行:
System.InvalidOperationException,出错绑定功能参数。
   在Microsoft.WindowsAzure.Jobs.RunnerProgram.InvokeWorker(MethodInfo的男,BindResult []绑定,信息参数[] PS)
   在Microsoft.WindowsAzure.Jobs.RunnerProgram.Invoke(IConfiguration配置,MethodInfo的男,FunctionInstanceGuid例如,IRuntimeBindingInputs投入,ParameterRuntimeBinding [] argDescriptors)
   在Microsoft.WindowsAzure.Jobs.RunnerProgram.Invoke(FunctionInvokeRequest调用,IConfiguration配置)
   在Microsoft.WindowsAzure.Jobs.RunnerProgram.MainWorker(FunctionInvokeRequest DESCR,IConfiguration配置)失败

有没有其他人遇到的消息被错误地出列(删除)使用Webjobs SDK时?

绑定故障是由于输入无效JSON格式,但我认为,除非有一个适当的退出到调用,我不认为输入的信息应予以删除。

这是在webjobs控制台应用程序的方法签名

 公共静态无效CreateCertificate(
        [QueueInput(certificaterequest)] CertificateRequest inputcertificate,
        [QueueOutput(certificatemade)]进行CertificateRequest outputcertificate,
        [BlobOutput(certificatemade / {GUID})] TextWriter的作家)
    {


解决方案

它看起来像一个错误。我记录它,我们将做更多的调查。

感谢您报告此!

ASP.NET Webjobs is incorrectly deleting a message in a queue when there is a binding failure. The correct process should be that the message is not deleted and reappears after the visibility timeout to be processed again.

Here is the invocation log

    running in pid: 6424
Timestamp:10:02:27 PM
Parameters bound. Invoking user function.
--------
--------
Exception while executing:
System.InvalidOperationException, Error while binding function parameters.
   at Microsoft.WindowsAzure.Jobs.RunnerProgram.InvokeWorker(MethodInfo m, BindResult[] binds, ParameterInfo[] ps)
   at Microsoft.WindowsAzure.Jobs.RunnerProgram.Invoke(IConfiguration config, MethodInfo m, FunctionInstanceGuid instance, IRuntimeBindingInputs inputs, ParameterRuntimeBinding[] argDescriptors)
   at Microsoft.WindowsAzure.Jobs.RunnerProgram.Invoke(FunctionInvokeRequest invoke, IConfiguration config)
   at Microsoft.WindowsAzure.Jobs.RunnerProgram.MainWorker(FunctionInvokeRequest descr, IConfiguration config)

FAIL

Has anyone else come across messages being incorrectly dequeued (deleted) when using Webjobs SDK?

The binding failure is due to invalid JSON format in the input, but I think that unless there is a proper exit to the invocation I don't think the input message should be deleted.

This is the method signature in the webjobs console app

public static void CreateCertificate(
        [QueueInput  ("certificaterequest")    ]      CertificateRequest inputcertificate,
        [QueueOutput ("certificatemade")       ]  out CertificateRequest outputcertificate,
        [BlobOutput  ("certificatemade/{Guid}")]      TextWriter writer)
    {

解决方案

It looks like a bug. I've logged it and we are going to do more investigation.

Thanks for reporting this!

这篇关于Azure的Webjobs SDK中删除邮件时,有一个绑定失败 - 错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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