Skip to content

Recover orphaned Playground WordPress archive locks #1953

Description

@chubes4

Problem

withPlaygroundArchiveCacheLock() represents ownership only as <version>.zip.lock/. If a process exits before its finally, that directory remains forever. Future runs cannot distinguish it from a live lock, wait 120 seconds, and fail with wordpress-archive-cache-lock.

Observed during the Intelligence v0.34.3 release with an unowned lock from 2026-07-21. Two retries failed before WordPress boot.

Expected

Archive cache locks carry owner identity, dead owners are reclaimed atomically, legacy ownerless locks are reclaimed after a conservative stale threshold, and an owner only removes its own lock.

Reproduction

  1. Create ~/.wordpress-playground/7.0.2.zip.lock/ with no owner process.
  2. Run a WP Codebox recipe targeting WordPress 7.0.2.
  3. Startup waits 120 seconds and fails instead of recovering the orphan.

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