Changes between Version 9 and Version 10 of JobTemplates
- Timestamp:
- Jan 12, 2017, 12:35:35 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
JobTemplates
v9 v10 6 6 Typically the same templates are used for many jobs. 7 7 8 A given app usually has one input and output template. 9 However, apps that can have varying numbers of files would need multiple templates, 10 one per file "signature". 11 8 12 == Input templates == 9 13 10 14 An input template file describes the job's input files, resource requirements, and scheduling parameters. 11 It has the form 15 16 Input files are of two types: 17 18 * '''Variable files''' can vary between jobs. 19 The job submission interfaces such as [JobSubmission#creatework-tool create_work()] 20 supply the physical names of the input files for that job. 21 22 * '''Constant files''' are the same across multiple jobs. 23 The physical name of the file is given in the input template; 24 it is not passed to the job-submission interfaces. 25 This might be used, for the files that make up a Docker image. 26 12 27 {{{ 13 14 28 <input_template> 15 29 <file_info> 16 30 <number>0</number> 31 [ <name>...</name> ] 17 32 [ <gzip/> ] 18 33 [ <sticky/> ] … … 52 67 53 68 '''<number>''':: use 0, 1, ... 69 '''<name>''':: specified only for constant files. 70 The physical name of the file. 71 The file must be staged before jobs are created with the template. 54 72 '''<gzip/>''':: transfer the file in gzipped (compressed) format to reduce network usage. 55 73 You must [JobStage stage the file with the --gzip option]. … … 96 114 This is enough for about 200 input files, 97 115 fewer if you use long file names or multiple download URLs. 98 If this isn't enough, you can use [FileCompression BOINC file compression] to zip several files into a single file reference for download, 116 If this isn't enough, you can use [FileCompression BOINC file compression] 117 to zip several files into a single file reference for download, 99 118 and expanding them prior to running on the client machine. 100 119 … … 142 161 and moved to the project directory after the job has finished. 143 162 Use this for [WrapperApp legacy applications]. 144 '''Important''': If the slot directory and the project directory are on the same filesystem, the file is moved instead of copied! 163 '''Important''': If the slot directory and the project directory are on the same filesystem, 164 the file is moved instead of copied! 145 165 '''<generated_locally/>''':: always include this for output files. 146 166 '''<max_nbytes>''':: maximum file size.