Skip to content

Commit 57ee9a8

Browse files
committed
fix(pegboard): refresh runner config after envoy connect
1 parent db4224a commit 57ee9a8

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • engine/packages/pegboard-envoy/src

engine/packages/pegboard-envoy/src/conn.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,12 @@ pub async fn init_conn(
279279
.custom_instrument(tracing::info_span!("envoy_init_tx")),
280280
)?;
281281

282+
// This connection path updates the pool protocol version directly.
283+
// Purge runner-config caches so readers do not keep seeing stale
284+
// pre-mk2 data after the transaction commits.
285+
pegboard::utils::purge_runner_config_caches(ctx.cache(), namespace.namespace_id, &pool_name)
286+
.await?;
287+
282288
// Send missed commands (must be after init packet)
283289
if !missed_commands.is_empty() {
284290
let msg = {

0 commit comments

Comments
 (0)