[7.x][ML] More advanced model snapshot retention options #56194
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR implements the following changes to make ML model snapshot
retention more flexible in advance of adding a UI for the feature in
an upcoming release.
model_snapshot_retention_daysfor new jobs is now10 instead of 1
daily_model_snapshot_retention_after_days,that defaults to 1 for new jobs and
model_snapshot_retention_daysfor pre-7.8 jobs
model_snapshot_retention_days, allmodel snapshots are deleted as before
daily_model_snapshot_retention_after_daysand
model_snapshot_retention_daysall but the first model snapshotfor that day are deleted
retainsetting of model snapshots is still respected to allowselected model snapshots to be retained indefinitely
Backport of #56125