Changes between Version 62 and Version 63 of RemoteJobs


Ignore:
Timestamp:
Mar 18, 2018, 11:24:44 PM (6 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RemoteJobs

    v62 v63  
    33= RPCs for remote job submission =
    44This document describes APIs for remotely submitting, monitoring, and controlling jobs on a BOINC server.
    5 The APIs supports the submission of '''batches''' of jobs, which may contain a single job or many thousands of jobs.
     5The APIs supports the submission of '''batches''' of jobs,
     6which may contain a single job or many thousands of jobs.
    67
    78At the bottom level, the interface consists of Web RPCs.
     
    4950 * '''input_template_filename''': an optional [wiki:JobTemplates input template file name].
    5051 * '''output_template_filename''': an optional [wiki:JobTemplates output template file name].
     52 * '''job_params''': optional job parameters (include the ones you want to specify):
     53   * '''rsc_disk_bound''': limit on disk usage in bytes
     54   * '''rsc_fpops_est''': estimated computing in FLOPs
     55   * '''rsc_fpops_bound''': upper bound on computing (abort if exceeded)
     56   * '''rsc_memory_bound''': maximum memory usage
     57   * '''delay_bound''': maximum turnaround time: if exceeded, create another instance of job.
    5158 * '''app_version_num''': if present, [JobPinning pins] the jobs to a particular app version number.
    5259 * '''jobs''': an array of job descriptors, each of which contains
     
    278285{{{
    279286int submit_jobs(
    280     const char* project_url,
    281     const char* authenticator,
    282     char app_name[256],
    283     int batch_id,
    284     vector<JOB> jobs,
    285     string& error_msg
     287        const char* project_url,
     288        const char* authenticator,
     289        char app_name[256],
     290        int batch_id,
     291        vector<JOB> jobs,
     292        string& error_msg,
     293        app_version_num = 0
     294);
     295
     296int submit_jobs2(
     297        const char* project_url,
     298        const char* authenticator,
     299        char app_name[256],
     300        int batch_id,
     301        vector<JOB> jobs,
     302        string& error_msg,
     303        app_version_num,
     304        JOB_PARAMS&
    286305);
    287306
    288307struct JOB {
    289     char job_name[256];
    290     string cmdline_args;
    291     vector<INFILE> infiles;
     308        char job_name[256];
     309        string cmdline_args;
     310        vector<INFILE> infiles;
     311};
     312
     313struct JOB_PARAMS {
     314    // 0 means unspecified for all params
     315    double rsc_disk_bound;
     316    double rsc_fpops_est;
     317    double rsc_fpops_bound;
     318    double rsc_memory_bound;
     319    double delay_bound;
    292320};
    293321
     
    590618This example is functional and it shows how to use the API.
    591619However, you will have to modify it for your particular applications and web site.
     620