处理“故障”工作流程的状态
我想知道如何最好地处理 WF4 工作流服务主机中的故障状态。我正在使用控制台自托管服务。我知道一种方法是实现 IErrorHandler 接口,但是有人知道如何在我的服务上配置它吗?即如何添加到行为集合?
此外,我想知道是否有人对工作流服务主机进入故障状态后如何最好地处理“重新启动”场景(或者实际上是否可能?)有任何想法/建议。我的理解是,一旦服务主机进入故障状态,游戏就结束了,应用程序实际上终止了。有人能给我一个可能的策略吗?我在想也许顶部的管理服务可以处理工作流服务主机控制台应用程序的失败实例 - 尽管在我尝试任何操作之前,我很想听听以前遇到过这种困境的人的意见。
编辑:
另外,我正在集群环境中工作。当集群进入故障转移状态时,工作流似乎会失去与数据库的连接一段时间(不超过)一分钟。有没有人专门处理过这种情况?
提前致谢 伊恩
I'm wondering how best to handle the Faulted state in a WF4 workflow service host. I'm using a console self-hosted service. I understand one approach is to implement the IErrorHandler interface, but does anybody know how I then configure this on my service? i.e. How do I add to the Behaviors collection?
Additionally, I wonder if anybody had any thoughts/advice on how best to handle a 'restart' scenario (or indeed if it's possible??) once the workflow service host has entered the Faulted state. My understanding is that once the service host enters the faulted state then it is end game and the application is in effect terminated. Can anybody give me a possible strategy for this? I'm thinking maybe a management service on top that handles failed instances of the workflow service host console application - though I'd be interested to hear from people who've faced this dilemma before, before I attempt anything.
EDIT:
Also, I'm working in a clustered environment. When the cluster enters a fail-over state, the workflow appears to lose connectivity with the database for a period of (no more than) one minute. Has anybody dealt with this scenario specifically?
Thanks in advance
Ian
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我们有一个解决方案 Microsoft.Activities v1.8.4 请参阅基于 WorkflowService 配置的扩展,它允许您使用服务行为和一些配置添加扩展。
We have a solution with Microsoft.Activities v1.8.4 see WorkflowService Configuration Based Extensions which allows you to add extensions using a service behavior and some config.