C# Script tool causing workflows to run slowly
Workflows in our test viewers/environment have started running really slowly, e.g. it can take over 30s for an initial display form to appear (normally this takes less than 1s). I've done some testing and the problem is being casued by the "C# Script" tools in these workflows.
Things were working fine last week, but now they're not. The workflows have not been changed in that time, and I have not made any changes to the sites or to GE either. Rebooting the server doesn't fix the problem. I think it may have been caused by a patch to the server, but our production server has been patched to the same level and the workflows on that server are working ok.
Has anyone else had similar problems? I'm keen to get this fixed in case the problem spreads to the production servers.
The workflows were written in Workflow Designer v4.4.2.21 and run in a SL v2.5 viewer from a GE v4.4.2 site.
Thanks,
Dave
0
-
There is another post somewhere that mentions avoiding custom scripts if you can. They get compiled everytime the workflow is run and it can crash the application pools. Not sure why it would be an issue all of sudde, though, maybe increased traffic to your site? 0 -
Thanks Dan. I've no idea what's caused this, or how to get it fixed up, so I think we're just going to have to take the advice from that post and remove all instances of C# code from our workflows. Thankfully our scripts aren't doing anything complex and we can rewrite what they're doing using other tools. 0 -
We reworked the functionality of the C# scripts using other tools, which has done away with the problem. I've no idea what triggered the C# script tools to start running slowly, hopefully it doesn't happen to anyone else with more complex C# scripts. 0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
3 kommentarer