Describe the purpose of the pull request, including:
Added the possibility to automatically delete the oldest checkpoints by specifying the number of checkpoints you want to keep (checkpoint.keep_last parameter). If this parameter is set to None, then no checkpoints are automatically deleted.
Type of Change
Please select the one relevant option below:
New feature (non-breaking change that adds functionality)
Checklist
Please confirm that the following tasks have been completed:
[x] I have tested my changes locally and they work as expected. (Please describe the tests you performed.)
[x] I have added unit tests for my changes, or updated existing tests if necessary.
[x] I have updated the documentation, if applicable.
[x] I have installed pre-commit and run locally for my code changes.
Summary
Describe the purpose of the pull request, including:
checkpoint.keep_last
parameter). If this parameter is set toNone
, then no checkpoints are automatically deleted.Type of Change
Please select the one relevant option below:
Checklist
Please confirm that the following tasks have been completed: