Changes between Version 22 and Version 23 of JobSubmission
- Timestamp:
- Oct 22, 2012, 2:43:52 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
JobSubmission
v22 v23 4 4 To submit a job you must 5 5 6 1. Write XML 'template files' that describe the job's input and output s (typically the same template files can be used for many jobs).6 1. Write XML 'template files' that describe the job's input and output files (typically the same template files can be used for many jobs). 7 7 1. "Stage" the job's input file(s) (see below). 8 8 1. Invoke a BOINC function or script that submits the job. … … 25 25 <file_info> 26 26 <number>0</number> 27 [ <gzip/> ] 27 28 [ <sticky/> ] 28 29 [ <no_delete/> ] … … 60 61 '''<file_info>''':: describes an [BoincFiles#Fileproperties input file]. 61 62 '''<number>''':: use 0, 1, ... 63 '''<gzip/>''':: transfer the file in gzipped (compressed) format to reduce network usage. '''You must stage the file with the --gzip option (see below)'''. Only 7.0+ clients can handle compressed transfers; older clients will get the file in uncompressed form. 62 64 '''<sticky/>''':: if present, the file remains on the client after job is finished. 63 65 '''<no_delete/>''':: if present, the file is not deleted from the server after job is completed. Use this if the file is used as input to more than one job. 64 '''<report_on_rpc/>''':: if present, report file in each scheduler request ( sticky files)66 '''<report_on_rpc/>''':: if present, report file in each scheduler request (for sticky files) 65 67 '''<url>, <md5_cksum>, <nbytes>''':: used only for "non-local" input files (see below) 66 68 … … 170 172 171 173 === Staging local input files === 172 Before submitting a job, you must put its local input files173 into the proper place in the [ServerDirs download directory hierarchy]. 174 BOINC provides both a command-line tool and a function for this. 175 The command-line tool is: 176 {{{ 177 dir_hier_path filename 178 }}} 179 which prints the full pathname and creates the directory if needed 180 (run this in the project's root directory). For example: 174 Before submitting a job, you must '''stage''' its local input files using 175 {{{ 176 bin/stage_file [--gzip] [--copy] file 177 }}} 178 --gzip:: send the file in compressed form to 7.0+ clients. Note: you must also include the '''<gzip/>''' attribute for this file in the job's input template (see above). 179 --copy:: copy the file from its current location to the BOINC download directory. The default is to move it. 180 181 Note: '''stage_file''' was added to the BOINC trunk on 16 Oct 2012. 182 If your server code is older than that, use 181 183 {{{ 182 184 cp test_files/12ja04aa `bin/dir_hier_path 12ja04aa` 183 }}}184 copies an input file from the test_files directory to the download directory hierarchy.185 186 The function (a member function of the {{{SCHED_CONFIG}}} class) is187 {{{188 // convert filename to path in download hierarchy189 //190 SCHED_CONFIG::download_path(191 const char* filename, // name of input file192 char* path // path in download hierarchy where it should go193 );194 185 }}} 195 186