Skip to content

[Bug]: scripts/dev-runner.ts allows duplicate dev supervisors to share a SQLite database #43575

Done

Description

@royalaid

Problem

Launching a second \pnpm dev\ / \scripts/dev-runner.ts\ supervisor against the same resolved dev SQLite database path succeeds while a stale supervisor is still running or restarting its server child, resulting in multiple server processes contending on the same SQLite database.

Expected behavior

Acquire a single-instance lock keyed by the resolved dev database path before spawning the dev stack, hold it for the supervisor's lifetime, and fail fast with a diagnostic naming the owning supervisor PID if a second supervisor targets the same database (while still allowing launches against separate databases).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions