Create run workspaces only when needed

This commit is contained in:
2026-09-05 16:34:59 +00:00
parent c2806a1615
commit 51d21676c1
9 changed files with 64 additions and 6 deletions

View File

@@ -43,6 +43,12 @@ type Stage interface {
Run(ctx context.Context, env *Env, m *manifest.Manifest) (*StageResult, error)
}
// RunWorkspacePolicy lets a stage declare whether it requires the current
// invocation's run directory. Stages require it by default.
type RunWorkspacePolicy interface {
RequiresRunWorkspace() bool
}
const maxResumeReasonLength = 512
// ResumeValidation reports whether a previously succeeded stage can be reused.