gsxdsm
76cecacddd
FN-8451: prevent embedded Postgres double starts
Prevent TaskStore boot collisions when an existing PostgreSQL pid file cannot yet be parsed.
- Read live postmaster pid files asynchronously with bounded retries.
- Fail closed when a present pid file has no readable port.
- Cover join, unreadable pid, and fresh-start lifecycle paths.
Files changed:
packages/core/src/__tests__/postgres/embedded-lifecycle.test.ts | 119 +++++++++++++++++++++
packages/core/src/postgres/embedded-lifecycle.ts | 49 ++++++---
2 files changed, 155 insertions(+), 13 deletions(-)
Fusion-Task-Id: FN-8451
Fusion-Task-Lineage: 823a874d-97ef-4380-97ce-e41981f660ff
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
2026-07-21 10:33:28 -07:00
..
2026-07-21 10:30:19 -07:00
2026-07-21 01:00:46 -07:00
2026-07-21 10:33:28 -07:00
2026-07-21 10:04:19 -07:00
2026-07-21 01:00:46 -07:00
2026-07-21 01:00:46 -07:00
2026-07-21 01:00:46 -07:00
2026-07-21 01:00:46 -07:00
2026-07-21 01:00:46 -07:00
2026-07-21 01:00:46 -07:00
2026-06-08 15:19:27 -07:00
2026-07-21 01:00:46 -07:00