Expose storage usage and safe persisted age or size retention
This commit is contained in:
@@ -313,6 +313,12 @@ func (r *runner) startWithSchedule(request protocol.Message, origin *pipeline.Sc
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
// Storage maintenance may have removed a clean inactive tree while an
|
||||
// admission was generating its title. Refuse that vanished workspace under
|
||||
// the same lock used by removal instead of launching into a missing tree.
|
||||
if info, err := os.Stat(workspace); err != nil || !info.IsDir() {
|
||||
return nil, fmt.Errorf("run workspace is no longer available: %s", workspace)
|
||||
}
|
||||
id, created, err := r.store.CreateRunTitled(r.ctx, d, request.RequestKey, workspace, request.AllowTools, request.WritePaths, request.Input, pipeline.RunOverrides{Schedule: origin, Model: request.Model, StageModels: request.StageModels, NotifyMode: request.NotifyMode, OutputFormat: request.OutputFormat}, runTitle, retryOf...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user