How to Hold and Release a Job

Follow

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("Sleep120", StateType.Any, svr).FirstOrDefault();
 
// Hold the entry
if (cj != null)
{
    cj.Hold();
}

 

 

Have more questions? Submit a request

Comments