Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to only archive workflows in a certain state #2000

Closed
danxmoran opened this issue Jan 16, 2020 · 2 comments
Closed

Ability to only archive workflows in a certain state #2000

danxmoran opened this issue Jan 16, 2020 · 2 comments
Labels
type/feature Feature request

Comments

@danxmoran
Copy link
Contributor

danxmoran commented Jan 16, 2020

Summary

Based on the community meeting and the example manifests here, it sounds like workflows will be auto-archived if they enter any terminal state. I think it'd be more valuable to have a configurable list of workflow states that trigger the auto-archive.

Motivation

My workflows generate ~large persistent volumes, with ownership set so the volumes get deleted when the workflow is deleted. It'd be ideal if I could configure the Argo server to:

  1. Auto-archive workflows as they succeed
  2. Auto-delete archived workflows (Auto-delete workflows on archive #2001)

That way volumes get cleaned up automatically in the happy path, but they're kept around for retries when things fail.

Proposal

I'm not sure about the internals, but at the config level I'd expect to see something like this:

persistence:
  archive:
    # Default: []
    # Alt default: [succeeded, failed]
    states: [succeeded]

Message from the maintainers:

If you wish to see this enhancement implemented please add a 👍 reaction to this issue! We often sort issues this way to know what to prioritize.

@simster7
Copy link
Member

cc @alexec

@alexec
Copy link
Contributor

alexec commented Sep 29, 2020

I think this can be done using archive strategy.

@alexec alexec closed this as completed Sep 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature Feature request
Projects
None yet
Development

No branches or pull requests

3 participants