index > Windows Workflow Foundation > Asp.net 2.0 hosted workflow is firing events triggered by delay a...

Asp.net 2.0 hosted workflow is firing events triggered by delay a...

Dear all,

I have a state machine workflow hosted under asp.net 2.0 which uses the ManualWorkflowSchedulerService, as recommended. It also has persistence and tracking running, with UseActiveTimers="true", so that expiring Delay activities wake up the workflow and continue execution. Generally, this all works fine.

I have put up a test version of the web site and asked a colleague to test it across the internet. We were mystified by the fact that certain events which should have taken place when a Delay expired at a specific time actually took place much later.

I have now realised that the expected events do not fire because the web site has "gone to sleep" because nobody is accessing it. The events get fired the next time somebody accesses the web site, instead of at the scheduled time.

Does anybody know how to make sure that the web site "stays awake", so that the events on Delay expiry take place when they should?




Trevor
Trevor E Hilder
You might want to look at your AppPool settings in IIS - it may be that iis is recyclying your process when it is idle for too long.


http://www.quicklearn.com/workflow.htm
Jon Flanders

Dear Jon,

Thanks for the suggestion. I checked the settings and the following were:

Recycle worker process (in minutes): 1,740

Shutdown worker processes after being idle for (time in minutes): 20

I have turned both these options off. Does that look like the right thing to do?




Trevor
Trevor E Hilder
Yes - I'd turn those settings off.


http://www.quicklearn.com/workflow.htm
Jon Flanders

Dear Jon,

Thanks for your suggestions on this.

I can now confirm that the problem of late events is resolved.




Trevor
Trevor E Hilder
reply 5

You can use google to search for other answers

 

More Articles

• State Machine Workflow sending an event to itself
• Sharing Data between Activities
• Configuring ActiveDirectoryRoleFactory to use an ADAM instance
• Error on ExpenseReporting
• Creating custom activity with its own picture
• Workflow Monitor from asp.net
• Problems implementing a Choreography between two Workflows using ...
• using Dataset to exchange data
• New Workflow In VS2005
• State Machine SetState
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• Getting the properties of children custo
• Both Client and Server Hosted Workflows
• Beta2 Installation problems
• HandleExternalEvent Problem
• Error compiling a Visual Studio solution
• Rules Engine: Identifying fired rule at
• Dynamic update within running Transactio
• Beta 2 tutorial: Confused about UnloadOn
• Check Statemachine Status with InstanceID
• SequentialWorkflow Inheritance (Beta 2)
• Runtime Error while CreateWorkflow in Vi
• Deploying WWF Beta 2...
• Wf doesn't support BPM
• TrackData when exception thrown
• I cannot design child activities in my d

Hot Articles

• Grabbing a WorkflowInstance or StateMach
• HOW DO YOU GET VISTA?!
• BPM generations
• StateMachine invoke StateMachine
• Several Listen Activity in my workflow.
• Difference between Beta2 and Beta2.2
• ASP.NET And a State Machine Workflow
• In sequential work flow , code condition
• Breakpoint not being hit while debugging
• problem with execution context and acces
• Data Activites missing - UpdateDate Sele
• What happened with WorkflowWebRequestCon
• How to store more information using pers
• How to host the WWF design control in an
• WorkflowCompiler -

Recommend Articles

• customError in webconfig file
• Interrupt State execution in State Machi
• Deriving EventSinkActivity
• Beta2: SequentialWorkflowActivity not fo
• Two questions on hydration/dehydration
• WorkflowCompiler - sign assembly
• Sharepoint and workflows
• Multiple workflows in one runtime and on
• The workflow hosting environment does no
• contradictory installation instructions
• Problem passing parameters from workflow
• event not listened in state machine
• ActivityDesignerTheme and VS restart
• Multiple implementations of an interface
• Urgent workflow initiation query