Skip to content

Playground CLI: Make /internal/shared truly shared in a multi-worker environment #2301

Open
@brandonpayton

Description

@brandonpayton
Member

Currently, when experimental multiple workers are enabled for Playground CLI, we:

  • Initialize and run the Blueprint on the first worker
  • Copy the first worker's /internal dir to the rest of the workers

This works in many cases, but it is technically possible that /internal/shared can change later. And if that happens, those changes would not be shared with all workers but rather isolated to a single worker.

Let's fix this.

One possibility is to mount a real temp dir as /internal/shared, but if we do that, it might be worth mounting such a temp dir as / because it would make our entire VFS shareable between workers. That way we could use multiple workers regardless of whether the user manually mounts a real dir as /wordpress.

cc @adamziel who brought up this issue.

Activity

brandonpayton

brandonpayton commented on Jun 30, 2025

@brandonpayton
MemberAuthor

I'm assigning this to myself so I don't forget about it. Please feel free to take it if you want to work on it in the meantime.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @brandonpayton

      Issue actions

        Playground CLI: Make /internal/shared truly shared in a multi-worker environment · Issue #2301 · WordPress/wordpress-playground