I have got the problem that my knime workflow doesn’t terminate and still remains in the Windows Task Manager, after it finnished succesfully.
I am using the following code to execute the workflow.
“C:\Program Files\KNIME\knime.exe” -reset -consoleLog -nosave -nosplash -application org.knime.product.KNIME_BATCH_APPLICATION -workflowFile= …"
The problem occures when I use the Security options in the Windows Task Scheduler (i am using Windows Server 2019 btw), shown below.
When choosing the option “Run whether use is logged on or not” the workflow will be executed in the background, so unfortunately there will be no console that shows any potential errors.
On the other hand, when just testing the batch file out of the shell, it works fine and the task terminates after the workflow has finnished. And it also works fine when running the batch file with the Secuirty options set to “Run only when user is logged on” out of the Task Scheduler.
Does someone know how to fix this problem?
Thanks in advance