Skip to content

Allow only one workspace per task #495

Closed

Description

@rakyll

TaskSpec.workspaces is a repeated field right now, so a task can bind several workspaces. Each one is mounted at its own path under /workspace (or at a custom path), and the first entry becomes the working directory. We should change this so a task binds at most one workspace.

Motivation

  • Combining filesystems is hard. Each workspace is its own durable filesystem. Mounting several into one task means handling mount layout, path conflicts, nested paths, and snapshot/restore across all of them. A partial failure while mounting or persisting leaves the task in a state that's hard to reason about.
  • It isn't very useful. Tasks work against a single working directory, which today is just the first entry. Users who need content from several sources can put it all in one workspace (e.g. via spec.files).

Proposal

  • Replace repeated WorkspaceRef workspaces = 5 in TaskSpec with a singular WorkspaceRef workspace.
  • Leave a task with no workspace working as it does now: it gets an empty working directory at /workspace.

Activity

  1. self-assigned this
    on Oct 18, 2026
  2. added a commit that references this issue on Oct 20, 2026
    83e0a70
  3. added a commit that references this issue on Oct 20, 2026
    6a1d6ea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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