Community forum

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


hrn@bankinvest.dk
2012-09-27T11:15:20Z
I am using version 6.0.8 of Visual Cron

I would like to programmatically perform actions equivalent to "Stop Job '<jobname>'" when rightclicking on a job in the GUI.

This is to completely automate our deployment, which currently relies on Visual Cron stopping all job processes.

I know how to get the JobClass object for the job I want to work on. Let's call it jobClassObj

I have found the Server.Activate(jobClassObj) but that does not seem to do quite what I want it to if I look at the GUI afterwards.

So what API functions should I call?

Regards, Henrik
Sponsor
Forum information
Support
2012-09-27T11:17:16Z
Hi,

use serverObj.Processes.KillJobProcesses(string jobId)
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top