Question about monitoring a process and restarting it automatically

Discuss RoboTask here
Post Reply
felixandrea
Posts: 1
Joined: Mon Aug 17, 2026 4:18 am

Question about monitoring a process and restarting it automatically

Post by felixandrea »

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!
Rukbunker
Posts: 238
Joined: Mon Feb 22, 2016 4:06 pm
Location: Netherlands

Re: Question about monitoring a process and restarting it automatically

Post by Rukbunker »

Use "Wait for Process Finish" and mention your exe. If exit code or variable is met, defined by you, add the actions afterwards. Or, while loop, use system variable {IsProcessExists(proces.exe)}, if exists = true, do nothing, else actions defined by you. Cyclic trigger with a delay in the task.

"Always Up" is an external tool which can do what you want as well, if Robotask doesn't fullfill your needs.
Post Reply