Changes between Version 9 and Version 10 of RemoteJobs
- Timestamp:
- Jul 23, 2011, 11:18:25 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RemoteJobs
v9 v10 2 2 = Remote job submission = 3 3 4 This document describes interfaces for remotely submitting batches ofjobs4 This document describes APIs for remotely submitting jobs 5 5 to a BOINC server. 6 These APIs can be used, for example, to create web interfaces for job submission, 7 such as might be found in a science portal web site: 8 9 [[Image(submit.png)]] 10 11 BOINC provides a PHP library that implements the API. 12 The underlying web services are implemented as HTTP/XML RPCs, 13 and it is easy to create bindings in other languages. 14 15 The APIs are designed for the submission of large '''batches''' of jobs, 16 such as parameter sweeps. 6 17 7 18 Users can submit jobs only if they have been given access 8 19 (via a web interface) by project administrators. 9 10 In addition, project admins can restrict the apps for which 20 In addition, admins can restrict the apps for which 11 21 each user is allowed to submit jobs. 22 The BOINC admin web pages provide an interface for this access control. 12 23 13 24 == PHP interface == … … 56 67 57 68 === boinc_query_batches() === 69 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, 73 with the following fields: 74 * '''id''': batch ID 75 * '''fraction_done''': a number 0..1 giving the fraction of the batch that has been completed 76 * '''create_time''': when the batch was submitted 77 * '''est_completion_time''': an updated estimate of completion time 78 * '''njobs''': the number of jobs in the batch 79 58 80 === boinc_query_batch() === 81 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 86 within the batch, with the following fields: 87 88 * '''id''': the job ID 89 * '''canonical_result_id''': if the job has been completed and validated, the ID of a valid instance 90 * '''n_outfiles''': the number of output files 91 59 92 === boinc_abort_batch() === 93 94 Argument: a request objects with '''project''' and '''authenticator''' fields as above, 95 and a '''batch_id''' element specifying a batch. 96 97 Result: an error message, null if successful 98 99 === boinc_get_output_file() === 100 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. 106 107 === boinc_get_output_files() === 108 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. 60 113 61 114 == HTTPS/XML interface ==