Commit 9b68192
committed
level: preserve args through as_dict round-trip when only one slot is populated
Level.as_dict() used all(self.args.values()), which dropped the entire
args entry whenever either 'keyword' or 'block' was empty -- the common
case for users who pass only keyword args. The scheduler reconstructs
the level via Level(repr=level) before handing it to the job adapter,
and re-feeds job.level into run_job during trsh, so the loss surfaced
as user-supplied keywords (e.g. opt=(verytight)) silently disappearing
on every trsh re-run while the initial run worked correctly.
Switch to any() so args is preserved when at least one slot has content;
still dropped when both are empty.1 parent a5735a6 commit 9b68192
2 files changed
Lines changed: 21 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
| 190 | + | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
122 | 142 | | |
123 | 143 | | |
124 | 144 | | |
| |||
0 commit comments