Changes between Version 12 and Version 13 of RemoteJobs


Ignore:
Timestamp:
Jul 25, 2011, 12:54:30 AM (13 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RemoteJobs

    v12 v13  
    2323
    2424== PHP interface ==
     25
     26The following functions are provided in the file
     27[/trac/browser/trunk/boinc/html/inc/submit.inc submit.inc],
     28which is independent of other BOINC code and can be used in the Portal web code.
    2529
    2630=== boinc_estimate_batch() ===
     
    165169== HTTPS/XML interface ==
    166170
    167 The APIs are accessed by sending a POST request,
    168 using HTTPS, to PROJECT_URL/submit.php
     171At a lower level, the APIs are accessed by sending a POST request,
     172using HTTPS, to PROJECT_URL/submit.php.
     173Bindings of these RPCs can be implemented in languages other than PHP.
    169174
    170175The inputs and outputs of each function are XML documents.
     
    185190{{{
    186191<job>
     192   <rsc_fpops_est>X</rsc_fpops_est>
    187193   [<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>]
    189198   ... other input files
    190199</job>
     
    197206{{{
    198207<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>
    203212   ... more jobs
    204213</batch>
    205214}}}
    206215
    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 
    210216=== Batch runtime estimation ===
    211217
     
    216222   <authenticator>X</authenticator>
    217223   <batch> ... </batch>
    218    [<priority>N</priority>]
    219224</batch_estimate>
    220225}}}
    221 
    222 '''Priority''', if specified, is relative to other batches submitted by this user.
    223226
    224227Output:
     
    236239   <authenticator>X</authenticator>
    237240   <batch> ... </batch>
    238    [<priority>N</priority>]
    239241</batch_submit>
    240242}}}
     
    246248
    247249=== Querying batches ===
     250
     251Input:
     252{{{
     253<query_batches>
     254   <authenticator>X</authenticator>
     255</query_batches>
     256}}}
     257
     258Output:
     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
    248271=== Querying a batch ===
    249272
     
    258281Output:
    259282{{{
    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>
    265291}}}
    266292
    267293=== Aborting a batch ===
     294
     295Input:
     296
     297{{{
     298<abort_batch>
     299   <authenticator>X</authenticator>
     300   <batch_id>N</batch_id>
     301</query_batch>
     302}}}
    268303
    269304== Implementation notes ==