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

Add job for deleting obsolete editions #91

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

simenheg
Copy link
Collaborator

Add a batch job that deletes editions considered "obsolete".

"Obsolete" editions are editions that fulfill both of the following criteria:

  1. They are more than 90 days old.

  2. The are past the third generation of editions (meaning that we always keep at least three editions of a dataset version).

When an edition is deleted, any distributions (and their files) belonging to it is deleted as well.

@simenheg simenheg requested a review from a team October 28, 2024 11:41
@simenheg
Copy link
Collaborator Author

Kjørt i dev, avventer i prod.

Avhenger av https://github.com/oslokommune/dataplatform-config/pull/324.

Add a batch job that deletes editions considered "obsolete".

"Obsolete" editions are editions that fulfill both of the following
criteria:

1. They are more than 90 days old.

2. The are past the third generation of editions (meaning that we
always keep at least three editions of a dataset version).

When an edition is deleted, any distributions (and their files)
belonging to it is deleted as well.
@simenheg simenheg force-pushed the delete-obsolete-editions-job branch from 8bb60c7 to d169aa7 Compare January 3, 2025 11:42
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