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.


Pedro Sanchez
2022-09-21T12:54:58Z
I have the following piece of code that does nothing to a running job. I added all those lines in an attempt to get it working but originally I tried each call separately and didn't attempt to post the job (none of that worked either).

job.Tasks.ForEach(t => { vcronServer.Jobs.Tasks.Stop(job.Id, t.Id); });
vcronServer.Jobs.Stop(job.Id);
vcronServer.Processes.KillJobProcesses(job.Id);
UpdateJob(job);

I'm also certain the job is correct because when I manually stop it and call the following block, the job is started

vcronServer.Jobs.Run(job.Id, bolCheckConditions: true);


What is the proper way to stop a job through the API on this version?
Sponsor
Forum information
Scroll to Top