The following code snippet can be used as an example on how to hold a Job and then release it.
Server svr = Server.GetServer("localhost"); // // Load the CurJob // CurJob cj; cj = CurJob.Find("SleepJob", StateType.Any, svr).FirstOrDefault(); // Hold the entry if (cj != null) { cj.Hold(); }
Comments