You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
api,runner: bind at most one workspace per task
api,runner: bind at most one workspace per task (#496)