AppFabric / WF 4.0 instances stuck despite no bookmark and pending timer

妖精的绣舞 提交于 2020-01-17 05:22:10

问题


I already posted a question about this (Abandoned instances that will not continue execution (zombie instances)), but still haven't got an answer.

A difference I have noticed from the last question is that it can happen also when the configuration of the service Action on unhandled exception is set AbandonAndSuspend.

So the scenario is a long term Workflow service hosted in IIS using AppFabric persistence store. This service performs some actions and then polls the result from a database. This polling is done every 30 minutes. For some reason the WF gets stuck and doesn't do anything else. Checking the InstancesTable I can see a past pending timer and an old LastUpdateTime.

The only workaround I found is to suspend and then resume the instances, which is obviously a painful process (there are around 5000 instances in this situation).

Thanks in advance


回答1:


The problem, as suspected, was related to the maximum number of concurrent instances. Due to some technical problems in a WCF that might be unavailable, there were a number of instances continuously running (retrying a call to that WCF) that were coping that number of maximum concurrent instances. Due to that, there were very few instances activated on every detection period. Thanks Maurice for your help



来源:https://stackoverflow.com/questions/6327238/appfabric-wf-4-0-instances-stuck-despite-no-bookmark-and-pending-timer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!