I have a Workflow that I have attempt to run an .exe file with a somewhat heavy load inside a try-catch (in the script.) It tries to run the .exe, and if there is any sort of issue, I have it wait 15 minutes by having the thread sleep and try again up to 5 times. If it didn't run successfully then I have it throw an Exception.
The default timeout for WF scripts is 2 minutes. Will this cause issues? Do I need to increase that to 15 minutes? Or is there a better way to handle this?
As it stands, I always get an "Object has been disconnected or does not exist at the server" warning even when it runs successfully. Even with the script activity set to report unhandled script exceptions as Errors by default, the "Object has been disconnected" only shows as a warning, so if the script fails it continues onto the next activity anyway even though it's inside a Try-Catch branch. Then the Query Rows activity fails because the CSV it's trying to query doesn't exist since the script failed.