BobK wrote
2) If a process crashes because of an internal error, the Switch for that process never gets set back to No, so this process would never run again. For this situation, I have another process that runs about every 15 minutes and checks each ControlRecord. If the ControlRecord Switch is Yes and the ControlRecord TimeStarted is more than 30 minutes ago, the Switch is reset to No. Under normal processing, my processes should not take 30 minutes to complete.
Is there a way to find out if a process is running programmatically. ?
I know that if we log in as admin we see the currently running processes in the system, and then cancel that process if we want, but in order to automate the cancelling of a Hung process, it would be good to be able to access the Active Processes query programmatically and then programmatically Cancel a process.
I'm just saying, because even if you check ControlRecord every 15 minutes (or whenever), and then mark a process as Switch = 'No', that process might still be running.... but just stuck.