knime service still running in task manager after workflow execution via batch file

batch
#1

knime service still running in task manager after workflow execution via batch file

i run knime workflow via cmd. via running bat file in windows,
but after the execution of wkf., knime service in task manager is still running…

how to stop running knime after execution

0 Likes

#2

Hi,
what happens when you execute KNIME from the command line without bat file? Does it shutdown correctly then? Would you mind sharing the bat file?
Kind regards
Alexander

0 Likes

#3

start “” “C:\Users\Navin Jadhav\Documents\knime_4.0.0.win32.win32.x86_64\knime_4.0.0\knime.exe” -nosplash -nosave -reset -noexit -application org.knime.product.KNIME_BATCH_APPLICATION -workflowDir=“C:\Users\Navin Jadhav\knime-workspace\Srini_CSV”

0 Likes

#4

Hi,
please see the documentation of the start command. Here it says:

If command is an internal cmd command or a batch file then the command processor is run with the /K switch to cmd.exe. This means that the window will remain after the command has been run.

I think this is why the process does not finish. Why do you need the start command at all? Can you not simply call KNIME directly in the batch file?
Kind regards
Alexander

0 Likes

#5

also, can we create a log file for the same? like each run one log file !!

0 Likes

#6

If i remove Start " " then cmd will open , for long… and no workflow will execute

0 Likes

#7

And does it show any output at all?

0 Likes

#8

no… it just open bat file in CMD and keep in open

0 Likes

#9

any cmd or keyword to stop knime after execution

0 Likes

#10

Could you remove the -noexit option in your original bat file (with start command) and try again?

0 Likes

#11

same… no change, still knime running

0 Likes

#12

What if you run it without bat file from the command line? Does it end then?

0 Likes

#13

bat file will requred to run with task sheduler / automate…

but still i tried without bat file.
and knime still running in bacground , but wkf executes

0 Likes

#14

Okay, can you send me the complete output of the batch executor?

0 Likes

#15

output of batch exwcuter means ?

i can share workflow and bat file …

0 Likes

#16

C:\Users\Navin Jadhav\Desktop>sample.bat

C:\Users\Navin Jadhav\Desktop>start “” “C:\Users\Navin Jadhav\Documents\knime_4.0.0.win32.win32.x86_64\knime_4.0.0\knime.exe” -nosplash -nosave -reset -noexit -application org.knime.product.KNIME_BATCH_APPLICATION -workflowDir=“C:\Users\Navin Jadhav\knime-workspace\Srini_CSV”

C:\Users\Navin Jadhav\Desktop>

0 Likes

#17

Hi,
If KNIME executes the workflow, it should also output status messages. If you don’t see them, please send me the log file created when executing the workflow.
Kind regards
Alexander

0 Likes

#18

knime.log (2.1 MB)

0 Likes

#19

There seem to be quite some errors in the log, for example locked files that cannot be accessed and failing connections to a database. Are you sure those are not the cause for KNIME stalling the execution? Are you sure that the workflow finishes completely?
Kind regards
Alexander

0 Likes

#20

yes its executing… here am writing csv. csv generating succesfully

0 Likes