Forum Discussion
SharePoint Workflows: Extend Timeout
How do I extend the execution time of a SharePoint workflow? Currently we are concerned with SharePoint 2016 Workflows. It appears to be running for around 20 minutes and then terminates. The events that we have associated to it are terminating at random locations. The code works outside of workflow and for shorter running processes. So, we are thinking timeout.
We have executed the following in an attempt to extend workflow to 30 minutes.
stsadm -o setproperty -pn workflow-eventdelivery-timeout -pv "30"
Is there something else that we can do, or that I am missing, to extend this? We can attempt reconfiguration to make things run shorter; however, I would like to have control over how long things can run. I don't want to limit the process, but be able to lengthen it if needed.
Thanks,
Craig
Craig Lamb SharePoint 2016 uses new workflow engine. You can check the blog post http://www.andrewconnell.com/blog/publishing-custom-events-to-sharepoint-2013-workflowson how to use Custom Events for Long Running External Processes.
20 Replies
- Devendra VelegandlaBrass Contributor
Craig Lamb SharePoint 2016 uses new workflow engine. You can check the blog post http://www.andrewconnell.com/blog/publishing-custom-events-to-sharepoint-2013-workflowson how to use Custom Events for Long Running External Processes.
- Prasad PunneriBrass Contributor
Is the new 2016 Workflow engine different from SP 2013 Workflow engine?
- Devendra VelegandlaBrass Contributor
Prasad Punneri, SharePoint 2016 uses same WF engine as SharePoint 2013.
- Craig LambCopper Contributor
Currently our workflows are quite minimal. They are essentially just a queue of Actions to be performed in a desired order.
So, is the idea to...
1. Create the event and wrap all the Action processing in it.
2. Then call it from the workflow so that it all this processes is executed outside of WF.
3. Then once completed WF advances to the next step.
Is the difference in that this will move the processing from the WF to the Service or site?
- Devendra VelegandlaBrass Contributor
Craig Lamb If you look at the code published by Andrew Connell https://code.msdn.microsoft.com/officeapps/SharePoint-2013-Route-25a25d87, all your questions will be cleared. I am adding a couple of screenshots for your reference. Please let me know if you still have questions. Thanks.
- Deleted
Did you try WaitforCustomEvent activity
https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.workflowservices.activities.waitforcustomevent.aspx
http://www.andrewconnell.com/blog/publishing-custom-events-to-sharepoint-2013-workflows