Commit fef6843
authored
Switch from Multi Threading to Multi Processing (MetOffice#206)
* Yet another weird round of having to repeatedly accept the same changes which git / VS Code are marking as in conflict.
Annoyingly, this seems to have introduced a bug as well.
* Fixing issue with external runners not establishing properly.
* Fixing an error that seems to have crept in during merging main and resolving clashes. But looking at it, I really can't fathom out 'how'
* Where do these line length errors in the linter(s) come from - I haven't edited this file...
* quick "improvement" to the error reporting in one of the tests
* Why am I constantly having to re-impliment fixes/tidying I'm sure I've done before.
* And now ruff_format wants to change them back again...
* Fix issue with "TLD" being repeated for paths when using --fullcheck
* Undoing auto formatting again as github CI doesn't agree with it (picard.gif)
* Remove the thread lock (not threading any more) to allow TestResult to be pickled
* 1st draft switching to multiprocessing.
* Functioning multiprocessor version using ProcessPoolExecuter
* Tidy and reduce default max-workers to 2
* Remove extraneous print call that merging main seems to have reinstated.1 parent ef0217d commit fef6843
2 files changed
Lines changed: 11 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
65 | 64 | | |
66 | 65 | | |
67 | 66 | | |
68 | | - | |
69 | 67 | | |
70 | 68 | | |
71 | 69 | | |
| |||
81 | 79 | | |
82 | 80 | | |
83 | 81 | | |
84 | | - | |
85 | | - | |
| 82 | + | |
86 | 83 | | |
87 | 84 | | |
88 | 85 | | |
| |||
94 | 91 | | |
95 | 92 | | |
96 | 93 | | |
97 | | - | |
98 | | - | |
| 94 | + | |
99 | 95 | | |
100 | 96 | | |
101 | 97 | | |
102 | 98 | | |
103 | 99 | | |
104 | 100 | | |
105 | | - | |
106 | | - | |
| 101 | + | |
107 | 102 | | |
108 | 103 | | |
109 | 104 | | |
| |||
188 | 183 | | |
189 | 184 | | |
190 | 185 | | |
191 | | - | |
192 | 186 | | |
193 | 187 | | |
194 | 188 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | 205 | | |
211 | 206 | | |
212 | 207 | | |
| |||
285 | 280 | | |
286 | 281 | | |
287 | 282 | | |
288 | | - | |
| 283 | + | |
289 | 284 | | |
290 | 285 | | |
291 | 286 | | |
| |||
324 | 319 | | |
325 | 320 | | |
326 | 321 | | |
327 | | - | |
| 322 | + | |
328 | 323 | | |
329 | 324 | | |
330 | 325 | | |
331 | 326 | | |
332 | 327 | | |
333 | 328 | | |
334 | 329 | | |
335 | | - | |
| 330 | + | |
| 331 | + | |
336 | 332 | | |
337 | 333 | | |
338 | 334 | | |
| |||
403 | 399 | | |
404 | 400 | | |
405 | 401 | | |
406 | | - | |
| 402 | + | |
407 | 403 | | |
408 | 404 | | |
409 | 405 | | |
| |||
417 | 413 | | |
418 | 414 | | |
419 | 415 | | |
420 | | - | |
421 | | - | |
| 416 | + | |
| 417 | + | |
422 | 418 | | |
423 | 419 | | |
424 | | - | |
| 420 | + | |
425 | 421 | | |
426 | 422 | | |
427 | 423 | | |
| |||
0 commit comments