Changes between Version 12 and Version 13 of RemoteJobs
- Timestamp:
- Jul 25, 2011, 12:54:30 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RemoteJobs
v12 v13 23 23 24 24 == PHP interface == 25 26 The following functions are provided in the file 27 [/trac/browser/trunk/boinc/html/inc/submit.inc submit.inc], 28 which is independent of other BOINC code and can be used in the Portal web code. 25 29 26 30 === boinc_estimate_batch() === … … 165 169 == HTTPS/XML interface == 166 170 167 The APIs are accessed by sending a POST request, 168 using HTTPS, to PROJECT_URL/submit.php 171 At a lower level, the APIs are accessed by sending a POST request, 172 using HTTPS, to PROJECT_URL/submit.php. 173 Bindings of these RPCs can be implemented in languages other than PHP. 169 174 170 175 The inputs and outputs of each function are XML documents. … … 185 190 {{{ 186 191 <job> 192 <rsc_fpops_est>X</rsc_fpops_est> 187 193 [<command_line>C</command_line>] 188 [<input_file>URL or path</input_file>] 194 [<input_file> 195 <source>URL or path</source> 196 <name>physical_name</name> 197 </input_file>] 189 198 ... other input files 190 199 </job> … … 197 206 {{{ 198 207 <batch> 199 <app >appname</app>200 [<input_template>x</input_template>]201 [<output_template>x</output_template>]202 < job>...</job>208 <app_name>appname</app_name> 209 <job> 210 ... 211 </job> 203 212 ... more jobs 204 213 </batch> 205 214 }}} 206 215 207 The names of the input and output template files may be specified;208 otherwise the defaults '''appname_in''' and '''appname_out''' are used.209 210 216 === Batch runtime estimation === 211 217 … … 216 222 <authenticator>X</authenticator> 217 223 <batch> ... </batch> 218 [<priority>N</priority>]219 224 </batch_estimate> 220 225 }}} 221 222 '''Priority''', if specified, is relative to other batches submitted by this user.223 226 224 227 Output: … … 236 239 <authenticator>X</authenticator> 237 240 <batch> ... </batch> 238 [<priority>N</priority>]239 241 </batch_submit> 240 242 }}} … … 246 248 247 249 === Querying batches === 250 251 Input: 252 {{{ 253 <query_batches> 254 <authenticator>X</authenticator> 255 </query_batches> 256 }}} 257 258 Output: 259 {{{ 260 <batches> 261 <batch> 262 <id>N</id> 263 <completed>0|1</completed> 264 [<fraction_done>X</fraction_done>] 265 {<completed_time>X</completed_time>] 266 </batch> 267 ... 268 </batches> 269 }}} 270 248 271 === Querying a batch === 249 272 … … 258 281 Output: 259 282 {{{ 260 <batch_status> 261 <fraction_done>X</fraction_done> 262 <jobs_completed>N</jobs_completed> 263 <remaining_time>X</remaining_time> 264 </batch_status> 283 <batch> 284 <job> 285 <id>N</id> 286 <canonical_resultid>N</canonical_resultid> 287 [<outfile>name</outfile>] 288 ... 289 </job> 290 </batch> 265 291 }}} 266 292 267 293 === Aborting a batch === 294 295 Input: 296 297 {{{ 298 <abort_batch> 299 <authenticator>X</authenticator> 300 <batch_id>N</batch_id> 301 </query_batch> 302 }}} 268 303 269 304 == Implementation notes ==