Commit 4d40f6f
authored
Fix bug in MPITaskScheduler where tasks with identical priorities fail with
# Description
The `MPITaskScheduler` uses Python's PriorityQueue to prioritize tasks
based on the number of nodes requested.
When items with identical priorities are are submitted to the
PriorityQueue, they attempt to sort based on the task dict which fails
with TypeError unhashable type: dict. This PR adds a new
`PrioritizedTask` dataclass that sets the task element to
`field(compare=False)`.
I'm splitting changes in #3783 to keep the PR concise. This is split 1
of 3.
# Changed Behaviour
Fixes the bug described above.
## Type of change
Choose which options apply, and delete the ones which do not apply.
- Bug fixTypeError (#3794)1 parent 07a4efb commit 4d40f6f
File tree
2 files changed
+38
-4
lines changed- parsl
- executors/high_throughput
- tests/test_mpi_apps
2 files changed
+38
-4
lines changedLines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
72 | 81 | | |
73 | 82 | | |
74 | 83 | | |
| |||
111 | 120 | | |
112 | 121 | | |
113 | 122 | | |
114 | | - | |
| 123 | + | |
115 | 124 | | |
116 | 125 | | |
117 | 126 | | |
| |||
169 | 178 | | |
170 | 179 | | |
171 | 180 | | |
172 | | - | |
| 181 | + | |
173 | 182 | | |
174 | 183 | | |
175 | 184 | | |
| |||
183 | 192 | | |
184 | 193 | | |
185 | 194 | | |
186 | | - | |
187 | | - | |
| 195 | + | |
| 196 | + | |
188 | 197 | | |
189 | 198 | | |
190 | 199 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 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 | + | |
0 commit comments