Commit 72dfe97
Nils Bars
Eager-load and expunge Exercise.config in the build thread
The build thread detaches the Exercise plus its forward relationships so
attribute access during the long-running Docker build does not trigger a
lazy load that would reopen a transaction and hold the build advisory
lock. Extends that pattern to the config relationship added with
ExerciseConfig, otherwise touching exercise.config in __run_build raises
DetachedInstanceError.1 parent 2b18323 commit 72dfe97
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
448 | 448 | | |
449 | 449 | | |
450 | 450 | | |
| 451 | + | |
451 | 452 | | |
452 | 453 | | |
453 | 454 | | |
| |||
470 | 471 | | |
471 | 472 | | |
472 | 473 | | |
| 474 | + | |
473 | 475 | | |
474 | 476 | | |
475 | 477 | | |
476 | 478 | | |
477 | 479 | | |
478 | 480 | | |
479 | 481 | | |
| 482 | + | |
480 | 483 | | |
481 | 484 | | |
482 | 485 | | |
| |||
0 commit comments