Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


shassan
2009-04-03T12:32:51Z

Hi,

i am currently testing Visual Cron (start/stop jobs, remote execution,...).
It's really a nice product 😎

I have juste a question regarding the ability to stop a running job 😕
Suppose you start a bat file, i know that the job will take a couple of minutes.
Before the end, i decided to stop the running job....what is the expected result?
I mean do Visual Cron stop (kill?) the bat ?

thanks a lot


Samatar
Sponsor
Forum information
Support
2009-04-03T17:16:03Z
Hi Samatar,

yes, VisualCron kills the parent process - the batch file in this case. If you have forked off (started other) processes through the batch file they might continue to execute depending on how you have configured the batch file.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
shassan
2009-04-03T17:46:04Z
Thanks,

In my job, i have one task (a command with arguments).
This command launch a java process 😒
When the job starts, it display a Cmd window, that's fine.
When i stop the job, the cmd process is stopped BUT the java process is still running.

Visual cron kill the first process (cmd) but is there a way to also kill child process (in my case the java process).

Thanks a lot.

Samatar
Support
2009-04-03T17:54:23Z
You could set a timeout on the Task and then add a Kill Task after that Task that kills the name of the Java process. This last Kill Task won't run until the first Task is done (timed out).
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Support
2009-04-03T18:13:03Z
Test this and we will also do some tests how to kill the whole process tree - and maybe implement it in next version of VisualCron.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
shassan
2009-04-03T18:18:30Z
Thanks Henrik,

is-it feasable/hard to add a feature like ''Kill child'' processes?

Thanks a lot


Samatar
Support
2009-04-03T18:22:28Z
Probably feasible, that is what we investigate now.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Support
2009-04-03T19:12:52Z
We have implemented that for next version. Will probably be released next week.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
shassan
2009-04-04T14:42:43Z
Next week ?

Great thanks a lot for your help.
I really appreciate.

Take care


Samatar
Support
2009-04-19T13:34:21Z
Sorry for the delay but the feature is now available.

You can now find this fix in version 5.1.1. Look here: http://www.visualcron.co...m.aspx?g=posts&t=531 
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top