Question about monitoring a process and restarting it automatically
Posted: Mon Aug 17, 2026 4:20 am
Hi everyone,
I'm working on a RoboTask automation where I need to monitor a specific Windows application and automatically restart it if it stops responding or closes unexpectedly.
Ideally, the task would:
Check whether the process is running at regular intervals.
Detect if the application is no longer responding.
Close/terminate the process if necessary.
Launch the application again.
Write a timestamp and status to a log file so I can see when a restart occurred.
I can handle the basic process start/stop actions, but I'm not sure what the most reliable way is to detect a hung/not responding application rather than simply checking whether the process exists.
Has anyone implemented something similar in RoboTask? What actions or conditions would you recommend for this?
Thanks in advance!
I'm working on a RoboTask automation where I need to monitor a specific Windows application and automatically restart it if it stops responding or closes unexpectedly.
Ideally, the task would:
Check whether the process is running at regular intervals.
Detect if the application is no longer responding.
Close/terminate the process if necessary.
Launch the application again.
Write a timestamp and status to a log file so I can see when a restart occurred.
I can handle the basic process start/stop actions, but I'm not sure what the most reliable way is to detect a hung/not responding application rather than simply checking whether the process exists.
Has anyone implemented something similar in RoboTask? What actions or conditions would you recommend for this?
Thanks in advance!