persistence - WF4 Workflow under AppFabric not resuming properly after IISreset -
folks, i've been having trouble wf4 problem. i'm modeling batch engine/work scheduler after ron jacobs' demo in endpoint.tv webcast (http://archive.msdn.microsoft.com/wf4batchjob). in example, "work branch" counts inside while loop. sample, send message workflow called sampleengine.xamlx counting. every count, workflow calls parent (jobscheduler.xamlx) , reports progress completed. works , have working - can schedule job , watch progress both in appfabric dashboard , calling queryprogress (a send/receive pair in scheduler workflow).
the problem when iireset simulate server failure or other problem, workflows (sampleengine.xamlx , jobscheduler.xamlx) both come online , show "in progress". problem neither of them track more events - seem stalled somewhere. furthermore, neither of them respond service messages in same way see wf services respond when there's no receive activity scheduled workflow's current state.
i've added persist activities everywhere , made sure persist after end of of sendreply activities hasn't made difference.
as said, changes i've made ron's sample work branch not inside while loop - sends single message child workflow (sampleengine.xamlx) start it. correlation between workflows works if server doesn't go down during execution.
any thoughts need here in order have workflows pick left off after iisreset appreciated. ron's sample kept on counting mine stops.
make sure turn on persistence storage workflow in appfabric configuration. it's not enabled default.
Comments
Post a Comment