Skip to content

Periodically delete old workflows#47

Merged
joshdk merged 2 commits into
masterfrom
jdk/delete-old-workflows
Apr 27, 2020
Merged

Periodically delete old workflows#47
joshdk merged 2 commits into
masterfrom
jdk/delete-old-workflows

Conversation

@joshdk
Copy link
Copy Markdown
Contributor

@joshdk joshdk commented Apr 25, 2020

No description provided.

@joshdk joshdk requested a review from al13n April 25, 2020 01:40
//
// E.g. a workflow must have finished more than 24 hours ago before it is
// considered for deletion.
const workflowMaxAgeGracePeriod = 24 * time.Hour
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just for context, what makes this grace period useful? Would it be helpful to comment it here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah. I expound on it here (https://github.com/stackrox/infra/pull/47/files#diff-c18c4c95a88e0fc7894470522a609f99R639) but I'll include that information in the comment here.

@joshdk joshdk merged commit 160c017 into master Apr 27, 2020
@joshdk joshdk deleted the jdk/delete-old-workflows branch April 27, 2020 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants