Set Maximum Run Time for a Scheduled Process

Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
26-11-17 09:38 PM
As per title, just wondering if it is possible to set a maximum run time (e.g. 5 hours)? This is because we have process that interacts with SAP, and sometimes if SAP does not return a response due to server or connection issues, Blue Prism will get stuck at that stage indefinitely. Since server/connection issues are not very frequent, this issue can easily be solved if there is such a timeout setting. Thank you.
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
27-11-17 10:18 PM
This would be something to use an environment variable for, for example a ""SAP timeout"" variable. You could even use a session variable or ""hard code"" it in the process, although probably not the best choice. It can't be specified in the Scheduler.
Have the process check the current time vs the start time and if 5 hours have elapsed end the process.
A feature added to Blue Prism, in 5.0.23 I think, allows you to set a timeout in application modeller that prevents Blue Prism from hanging like this.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-05-18 06:52 PM
Hi John,
I am facing the very similar issue with SAP. In my process all the SAP steps are done by code stages. I was testing the timeout function in application modeler and apparently it only works for ""Navigate, Read, Write"" stages. It doesnt work for Code stages. Is it somehow possible to replicate the same functionality of timeout also for code stages in BP?
Thank you
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-05-18 08:26 PM
The app modeller timeout is unconnected to code stages. If you write code that never completes (eg infinite loop) then the code stage will also be blocked. To achieve something similar in a code stage you'd probably have to use Thread to execute your code separately.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-05-18 06:36 PM
Thanks Jon, will do so.
