Scenario:
I've created a scheduled task which runs once a day. This task starts a pad.console.host.exe to run a desktop flow. The task has been setup, so it will run even if the user is not logged in. The PAD is setup well (no background proces when closed etc).
Problem:
Everything works fine, the scheduled task run, the flow has been executed and finished.
But the scheduled task keeps status 'Running'. Looking at the Task Manager, I found that pad.console.host.exe is still active. Killing that proces, makes that the scheduled task finished (the other way around, ending manualy the task will also close that running pad.console.host.exe proces).
Workaround(?):
I have searched a lot, but haven't found a normal way to end this scheduled task (which run once a day). To overcome this issue, for now I, in the task settings, I select under settings the value for 'Stop the task if it runs longer than:' to 1 hour.
Question:
Is there a (normal) way that the (background) proces pad.console.host.exe can be stopped when the flow is finished?