Commit f9feb8b
fix(engine_adapter): preserve pre_ping in with_settings
EngineAdapter.with_settings() did not forward the current _pre_ping
value to the cloned adapter, and the constructor defaults pre_ping to
False. Context.snapshot_evaluator clones the adapter this way, so
pre_ping: true silently did not apply to model evaluation or the
before_all/after_all environment statements, and a stale connection
after a long run failed instead of being re-established.
pre_ping is now carried over like the other settings, and remains
overridable via an explicit keyword argument.
Adds a regression test asserting the cloned adapter keeps pre_ping.
Signed-off-by: Sanjay Santhanam <51058514+Sanjays2402@users.noreply.github.com>1 parent 40a24dd commit f9feb8b
2 files changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| 181 | + | |
181 | 182 | | |
182 | 183 | | |
183 | 184 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3522 | 3522 | | |
3523 | 3523 | | |
3524 | 3524 | | |
| 3525 | + | |
| 3526 | + | |
| 3527 | + | |
| 3528 | + | |
| 3529 | + | |
| 3530 | + | |
| 3531 | + | |
| 3532 | + | |
| 3533 | + | |
3525 | 3534 | | |
3526 | 3535 | | |
3527 | 3536 | | |
| |||
0 commit comments