While JAMS has extensive capabilities for automatically submitting Jobs, sometimes you need to submit a Job from your code, or from the REST API. Here is an example:
Submitting a Job |
Copy Code
|
---|---|
// // Get a connection to our JAMS Server // You will probably have to change the node name "localhost" // to the name of your JAMS Server // JAMS.Server server = JAMS.Server.GetServer("localhost"); // // Load the job that we want to submit // JAMS.Submit.Info si; JAMS.Submit.Load(out si, "BackupDB", server, JAMS.Submit.Type.Job); // // Finish the submit // si.Submit(); |