Commit 41e53bc
Fixing scene serialisation error that was crashing jobs after restoration from a checkpoint.
Root cause: _make_json_serializable() silently drops SceneSpec dataclass objects from the checkpoint, so the 'scene' key vanishes.
Fix: Made get_state()/set_state() no-ops — _round_idx_to_scene is derived from the constructor's scenes arg, which is re-supplied when the prefab rebuilds on restore. No dynamic state needs persisting.
PiperOrigin-RevId: 878400465
Change-Id: I976ecddfcced1dbf84d37a00003c43252cb280fd1 parent 326d918 commit 41e53bc
File tree
2 files changed
+18
-6
lines changed- concordia/components/game_master
2 files changed
+18
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
| 270 | + | |
274 | 271 | | |
275 | 272 | | |
276 | 273 | | |
277 | | - | |
278 | | - | |
| 274 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
143 | 159 | | |
144 | 160 | | |
145 | 161 | | |
0 commit comments