Skip to content

feat: add schedule worktree isolation for running jobs in isolated worktrees#295

Open
chriswritescode-dev wants to merge 4 commits into
mainfrom
feat/schedule-worktree-isolation
Open

feat: add schedule worktree isolation for running jobs in isolated worktrees#295
chriswritescode-dev wants to merge 4 commits into
mainfrom
feat/schedule-worktree-isolation

Conversation

@chriswritescode-dev

Copy link
Copy Markdown
Owner

Adds schedule worktree isolation, allowing scheduled jobs to run in isolated git worktrees instead of inline in the main working directory. Includes:

  • New isolationMode field (worktree/inline) and optional branch field on schedule jobs
  • ScheduleWorktreeManager service for worktree lifecycle (create, finalize, teardown)
  • Migration 014-schedule-worktree-isolation adding runBranch, commitHash, and worktreePath columns to schedule_runs
  • Branch/commit metadata displayed in run history cards and job detail tab
  • UI controls in GeneralTab for isolation mode and branch selection
  • Race-safe teardown guard to prevent duplicate finalization
  • Recovery logic for orphaned runs with worktree paths

Checks

  • pnpm lint

@chriswritescode-dev chriswritescode-dev force-pushed the feat/schedule-worktree-isolation branch from 7ced4d8 to 0d68985 Compare June 28, 2026 23:54
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