Skip to content

Have pipeline collector destroy archived pipelines after some duration (opt-in) - #9630

Merged
taylorsilva merged 1 commit into
masterfrom
destroy-archived-pipelines
Jul 14, 2026
Merged

taylorsilva merged 1 commit into
masterfrom
destroy-archived-pipelines

Conversation

@taylorsilva

Copy link
Copy Markdown
Member

Changes proposed by this PR

Adds a CONCOURSE_DESTROY_ARCHIVED_PIPELINES_AFTER flag to the web command with a default value of zero. When set to a value > 0 in Go's time.Duration format, the pipeline collector component will also destroy previously archived pipelines. Archived pipelines are only destroyed when a duration > zero is specified.

The lifecycle of a pipeline set by another pipeline via the set_pipeline step now looks like:

  1. Child pipeline created via set_pipeline
  2. Child pipeline stops being set by parent pipeline
  3. Pipeline collector immediately archives the child pipeline
  4. If CONCOURSE_DESTROY_ARCHIVED_PIPELINES_AFTER is > 0, when the child pipeline has been archived for longer than the given duration, it will be permanently destroyed.

This should be documented on these pages:

The pipeline collector component will now archive and destroy archived
pipelines. Archived pipelines are only destroyed when a duration > zero
is specified.

Signed-off-by: Taylor Silva <[email protected]>
@taylorsilva
taylorsilva requested a review from a team July 6, 2026 21:23
@taylorsilva
taylorsilva merged commit 9959bc7 into master Jul 14, 2026
11 checks passed
@taylorsilva
taylorsilva deleted the destroy-archived-pipelines branch July 14, 2026 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant