Archive pipelines: hide unused ones while keeping their history
archived_at on pipelines (migrated in place). archive_pipeline and unarchive_pipeline by id or name with an expected-version guard; list_pipelines hides archived unless include_archived. Archived pipelines refuse runs, retries, new versions and name reuse, and cannot be archived while an enabled schedule points at them. CLI archive/unarchive and list --archived/--all, docs and skill note.
This commit is contained in:
@@ -185,6 +185,9 @@ func (r *runner) startWithSchedule(request protocol.Message, origin *pipeline.Sc
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if d.ArchivedAt != "" {
|
||||
return nil, &pipeline.ArchivedError{Name: d.Name}
|
||||
}
|
||||
if _, err := pipeline.Parse(pipeline.ExecutionSource(d.Source)); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user