Commit e4b5ccc
Allow CLI overrides for runtime features (#39)
* Fixed a bug in the parsing of key=value arguments where the dictonary
was overwritten if multiple CLI options were provided. Added an
override arguments CLI option to allow a user to override any existing
center-provided default.
* Initial pass of enabling a set of arbitrary CLI override arguments for
the runtime launch args.
* Refactored the launch_script function to the scheduler parent class.
Added helper functions to customize per scheduler.
* Refactored the launch command function so that is it consolidated in
the scheduling parent class.
* Refactoring the function to build command line and batch script arguments.
* Refactored the function to build the command string from each
scheduler into the parent class. Added a CLI to provide a custom
launch folder name.
* Added control functions to help enable when to append the run
arguments to the internal and launch commands.
* Code cleanup.
* Switched order of a few functions to change the order of arguments.
* Ensure that the submit only args are appended to both interactive and
batch launch commands. Fix some LSF bugs.
* Adding a set of unit tests for the scheduler and CLI overrides.
* Added the ability to remove a launch or run argument set by the system
configuration by passing it with a leading tilde (~). Also corrected
the unit testing for the new CLI override.
* Cleanup.
* Apply suggestions from code review
Co-authored-by: Tal Ben-Nun <tbennun@users.noreply.github.com>
* Added a function specialization for passing environment variables to
each scheduler.
---------
Co-authored-by: Tal Ben-Nun <tbennun@users.noreply.github.com>1 parent 4e34b14 commit e4b5ccc
File tree
10 files changed
+516
-407
lines changed- hpc_launcher
- cli
- schedulers
- systems/lc
- tests
10 files changed
+516
-407
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
128 | 139 | | |
129 | 140 | | |
130 | 141 | | |
| |||
136 | 147 | | |
137 | 148 | | |
138 | 149 | | |
139 | | - | |
| 150 | + | |
140 | 151 | | |
141 | 152 | | |
142 | 153 | | |
| |||
188 | 199 | | |
189 | 200 | | |
190 | 201 | | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
191 | 211 | | |
192 | 212 | | |
193 | 213 | | |
| |||
293 | 313 | | |
294 | 314 | | |
295 | 315 | | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
296 | 320 | | |
297 | 321 | | |
298 | 322 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 36 | + | |
50 | 37 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 38 | + | |
61 | 39 | | |
62 | | - | |
| 40 | + | |
63 | 41 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
| 42 | + | |
71 | 43 | | |
72 | 44 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 45 | + | |
77 | 46 | | |
78 | 47 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
83 | 52 | | |
84 | 53 | | |
85 | 54 | | |
86 | 55 | | |
87 | 56 | | |
88 | 57 | | |
89 | | - | |
| 58 | + | |
90 | 59 | | |
91 | | - | |
92 | | - | |
| 60 | + | |
| 61 | + | |
93 | 62 | | |
94 | 63 | | |
95 | | - | |
96 | | - | |
| 64 | + | |
97 | 65 | | |
98 | | - | |
99 | | - | |
| 66 | + | |
100 | 67 | | |
101 | 68 | | |
102 | | - | |
103 | | - | |
| 69 | + | |
104 | 70 | | |
105 | 71 | | |
106 | | - | |
107 | | - | |
| 72 | + | |
108 | 73 | | |
109 | 74 | | |
110 | | - | |
111 | | - | |
| 75 | + | |
112 | 76 | | |
113 | 77 | | |
114 | 78 | | |
115 | 79 | | |
116 | 80 | | |
117 | 81 | | |
118 | 82 | | |
119 | | - | |
120 | | - | |
| 83 | + | |
121 | 84 | | |
122 | 85 | | |
123 | | - | |
124 | | - | |
| 86 | + | |
125 | 87 | | |
126 | 88 | | |
127 | 89 | | |
128 | 90 | | |
129 | 91 | | |
130 | 92 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
| 93 | + | |
135 | 94 | | |
136 | | - | |
137 | | - | |
138 | | - | |
| 95 | + | |
| 96 | + | |
139 | 97 | | |
140 | | - | |
141 | | - | |
| 98 | + | |
| 99 | + | |
142 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
143 | 105 | | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
205 | 114 | | |
206 | 115 | | |
207 | 116 | | |
| |||
0 commit comments