Changes between Version 31 and Version 32 of JobSubmission


Ignore:
Timestamp:
Apr 20, 2014, 11:47:34 PM (10 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • JobSubmission

    v31 v32  
    4848 --additional_xml 'x':: This can be used to supply, for example, <credit>12.4</credit>.
    4949
     50=== Remote input files ===
     51By default, input files are staged locally on the project server,
     52and are identified by their filename.
     53
     54However, you can also use input files that are remote,
     55i.e. on a web server other than the project server.
     56In that case you must specify them as
     57{{{
     58--remote_file filename URL nbytes MD5
     59}}}
     60
    5061== From a C++ program == #cpp-workgen
    5162
     
    6879(the latter has priority).
    6980On a successful return, wu.id contains the database ID of the workunit.
     81
     82If you want to use remote input files, use the following variant:
     83{{{
     84int create_work(
     85    DB_WORKUNIT& wu,
     86    const char* wu_template,                  // contents, not path
     87    const char* result_template_filename,     // relative to project root
     88    const char* result_template_filepath,     // absolute or relative to current dir
     89    vector<INFILE_DESC> infiles,              // list of input file descriptions; see below
     90    SCHED_CONFIG&,
     91    const char* command_line = NULL,
     92    const char* additional_xml = NULL
     93);
     94
     95struct INFILE_DESC {
     96    char name[1024];     // physical name
     97    bool is_remote;
     98    // the following defined if remote
     99    double nbytes;
     100    char md5[64];
     101    char url[1024];
     102};
     103
     104}}}