| | 145 | === Making OMF scripts that work with the scheduler === |
| | 146 | |
| | 147 | To work with the scheduler utility script, the OMF experiment script should define a property 'node' that specifies the resource to use. This should also be the name of a queue. For an experiment that requires multiple resources, they should be specified with e.g. a dictionary. |
| | 148 | |
| | 149 | For example, this script defines a "sndnode" and a "rcvnode": |
| | 150 | |
| | 151 | {{{ |
| | 152 | defProperty('prefix', '', "Prefix for HRN") |
| | 153 | defProperty('suffix', '.grid.orbit-lab.org', "Suffix for HRN") |
| | 154 | defProperty('node', 'node3-19', "ID of sender node, will be passed by job scheduler") |
| | 155 | |
| | 156 | # Set up node pair |
| | 157 | sndnode = "#{property.prefix}#{property.node}#{property.suffix}" |
| | 158 | assignments = {"node3-19" => "node3-18", "node14-10" => "node14-11"} |
| | 159 | rcvnode = assignments["#{property.node}"].to_s |
| | 160 | }}} |
| | 161 | |
| | 162 | |
| | 163 | |