Skip to content

Fix leaked workspaces after worker restarts - #237

Open
eshulman2 wants to merge 1 commit into
mainfrom
fix/workspace-teardown-leak
Open

Fix leaked workspaces after worker restarts#237
eshulman2 wants to merge 1 commit into
mainfrom
fix/workspace-teardown-leak

Conversation

@eshulman2

Copy link
Copy Markdown
Collaborator

Summary

  • persist ticket and repository identity inside each workspace
  • delete state-recorded workspaces when the process-local manager registry is unavailable
  • validate the workspace root, name, identity, and symlink status before fallback deletion
  • prevent cross-repository feature workflows from deleting another repository's workspace

Validation

  • uv run pytest tests/sandbox/test_task_execution.py tests/unit/workflow/nodes/test_workspace_setup.py -q (19 passed)
  • uv run ruff check src/forge/workflow/nodes/workspace_setup.py tests/sandbox/test_task_execution.py
  • git diff --check

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant