多实例中的Azure Webjob-将正常工作 [英] Azure webjobs in multi instance - will work

查看:80
本文介绍了多实例中的Azure Webjob-将正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我们正在使用exe文件进行文件导入.文件导入将完成所有验证后,它将上传,这取决于大小大约需要5分钟.我正在使用webjob- Continuous-多实例在天蓝色中进行此文件导入.二 用户可以同时导入文件.将同时添加两个队列.作业开始时,拾取队列.一个正在处理,第二个队列同时开始处理.在这个时候,一个成功可能是另一个从未完成. 如果只有一个用户正在上传(一个队列),则工作正常.并发问题来了.我在进程队列功能中使用异步调用,我尝试了await和我尝试了Task.run,也没有异步.没事.对于并行作业,这是最好的 方法.建议我尽快.小紧急

Hi  , we are using the exe file for file import. File import will  do all the validation and it will upload , it will take approximately 5 min based on the size. I am having a webjob- Continous- multiinstance in azure for this file import. Two user can do the file import same time. Two queue will be added in sametime. When the jobs started pick up the queue .One is processing and the same time second queue started processing. In this time one may success other is went through never finish.  If only one user is uploading (one queue) working perfect. Concurrent issue is coming. i am using async call in process queue function , i tried with await and i tried with Task.run and without async too. Nothing work out. For parallel jobs which is the best approach. suggest me asap. Little urgent

推荐答案

  获取有关此问题的更多详细信息.

Apologies for the delay!  Just to clarify, are you receiving any specific error message(s)? Checkout Enable console logging to fetch more details on the issue.

对于 连续   WebJobs-Console.Out 和Console.Error路由到应用程序日志,它们将显示为文件,blob或表存储,具体取决于您对应用程序日志的配置(类似于您的网站). 解决了类似的问题,并查看了中概述的方法 .

For continuous WebJobs - Console.Out and Console.Error are routed to the Application logs, they will show up as file, blob or table storage depends on your configuration of the application logs (similar to your Website).You may take a look at the discussion thread which addresses a similar issue and checkout the approach outlined in this document.

此外,请参考

Also, refer the document (azure-webjobs-sdk) for more details on this topic.


这篇关于多实例中的Azure Webjob-将正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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