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?