Changes between Version 9 and Version 10 of RemoteJobs


Ignore:
Timestamp:
Jul 23, 2011, 11:18:25 PM (13 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RemoteJobs

    v9 v10  
    22= Remote job submission =
    33
    4 This document describes interfaces for remotely submitting batches of jobs
     4This document describes APIs for remotely submitting jobs
    55to a BOINC server.
     6These APIs can be used, for example, to create web interfaces for job submission,
     7such as might be found in a science portal web site:
     8
     9[[Image(submit.png)]]
     10
     11BOINC provides a PHP library that implements the API.
     12The underlying web services are implemented as HTTP/XML RPCs,
     13and it is easy to create bindings in other languages.
     14
     15The APIs are designed for the submission of large '''batches''' of jobs,
     16such as parameter sweeps.
    617
    718Users can submit jobs only if they have been given access
    819(via a web interface) by project administrators.
    9 
    10 In addition, project admins can restrict the apps for which
     20In addition, admins can restrict the apps for which
    1121each user is allowed to submit jobs.
     22The BOINC admin web pages provide an interface for this access control.
    1223
    1324== PHP interface ==
     
    5667
    5768=== boinc_query_batches() ===
     69
     70Argument: a request objects with '''project''' and '''authenticator''' fields as above.
     71
     72Result: a 2-element array.  The first element is an array of objects describing batches,
     73with 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
    5880=== boinc_query_batch() ===
     81
     82Argument: a request objects with '''project''' and '''authenticator''' fields as above,
     83and a '''batch_id''' element specifying a batch.
     84
     85Result: a 2-element array.  The first element is an array of objects describing jobs
     86within 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
    5992=== boinc_abort_batch() ===
     93
     94Argument: a request objects with '''project''' and '''authenticator''' fields as above,
     95and a '''batch_id''' element specifying a batch.
     96
     97Result: an error message, null if successful
     98
     99=== boinc_get_output_file() ===
     100
     101Argument: a request objects with '''project''' and '''authenticator''' fields as above,
     102a '''job_id''' element specifying a job, and a '''file_num''' field giving the
     103ordinal number of one of the output files.
     104
     105Result: A URL from which the output file can be downloaded.
     106
     107=== boinc_get_output_files() ===
     108
     109Argument: a request objects with '''project''' and '''authenticator''' fields as above,
     110and a '''batch_id''' element specifying a batch.
     111
     112Result: A URL from which a zipped archive of all output files from the batch can be downloaded.
    60113
    61114== HTTPS/XML interface ==