15 | | The APIs are designed for the submission of large '''batches''' of jobs, |
16 | | such as parameter sweeps. |
17 | | |
18 | | Users can submit jobs only if they have been given access |
19 | | (via a web interface) by project administrators. |
20 | | In addition, admins can restrict the apps for which |
| 17 | This system is coupled with new |
| 18 | [MultiUser multi-user project features]. |
| 19 | In particuler, users can submit jobs only if they have been given access |
| 20 | (via a web interface) by project administrators, |
| 21 | and admins can restrict the apps for which |
70 | | Argument: a request objects with '''project''' and '''authenticator''' fields as above. |
71 | | |
72 | | Result: a 2-element array. The first element is an array of objects describing batches, |
| 76 | Returns a list of this user's batches, both in progress and complete. |
| 77 | |
| 78 | Argument: a request object with elements |
| 79 | * '''project''' and '''authenticator''': as above. |
| 80 | |
| 81 | Result: a 2-element array. |
| 82 | The first element is an array of objects describing batches, |
82 | | Argument: a request objects with '''project''' and '''authenticator''' fields as above, |
83 | | and a '''batch_id''' element specifying a batch. |
84 | | |
85 | | Result: a 2-element array. The first element is an array of objects describing jobs |
| 92 | Gets batch details. |
| 93 | |
| 94 | Argument: a request object with elements |
| 95 | * '''project''' and '''authenticator''': as above |
| 96 | * '''batch_id''': specifies a batch. |
| 97 | |
| 98 | Result: a 2-element array. |
| 99 | The first element is an array of objects describing jobs |
| 107 | === boinc_query_job() === |
| 108 | |
| 109 | Gets job details. |
| 110 | |
| 111 | Argument: a request object with elements: |
| 112 | * '''project''' and '''authenticator''': as above |
| 113 | * '''job_id''': specifies a job. |
| 114 | |
| 115 | Result: a 2-element array. |
| 116 | The first element is an object with the following fields: |
| 117 | * '''instances''': an array of job instance descriptors |
| 118 | |
| 119 | Each job instances descriptor is an object with the following fields: |
| 120 | * '''instance_name''': the instance's name |
| 121 | * '''instance_id''': the ID of the corresponding result record |
| 122 | |
101 | | Argument: a request objects with '''project''' and '''authenticator''' fields as above, |
102 | | a '''job_id''' element specifying a job, and a '''file_num''' field giving the |
103 | | ordinal number of one of the output files. |
104 | | |
105 | | Result: A URL from which the output file can be downloaded. |
| 133 | Get a URL for a particular output file. |
| 134 | |
| 135 | Argument: a request object with elements |
| 136 | * '''project''' and '''authenticator''': as above, |
| 137 | * '''instance_name''': specifies a job instance, |
| 138 | * '''file_num''': the ordinal number of one of the output files. |
| 139 | |
| 140 | Result: a 2-element array; |
| 141 | the first element is a URL from which the output file can be downloaded. |
109 | | Argument: a request objects with '''project''' and '''authenticator''' fields as above, |
110 | | and a '''batch_id''' element specifying a batch. |
111 | | |
112 | | Result: A URL from which a zipped archive of all output files from the batch can be downloaded. |
| 145 | Argument: a request object with elements |
| 146 | * '''project''' and '''authenticator''': as above, |
| 147 | * '''batch_id''': specifies a batch. |
| 148 | |
| 149 | Result: a 2-element array; |
| 150 | the first element is |
| 151 | a URL from which a zipped archive of all |
| 152 | output files from the batch can be downloaded |
| 153 | (only the outputs of "canonical" instances are included). |
| 154 | |
| 155 | === boinc_cleanup_batch() === |
| 156 | |
| 157 | Delete server storage (files, DB records) associated with a batch. |
| 158 | |
| 159 | Argument: a request object with elements |
| 160 | * '''project''' and '''authenticator''': as above, |
| 161 | * '''batch_id''': specifies a batch. |
| 162 | |
| 163 | Result: an error message, null if successful |