Skip to content

Commit

Permalink
FIX Support Diagnostics housekeeping
Browse files Browse the repository at this point in the history
The diagnostics dump job splits collecting data into chunks and creates
a tar for each chunk. The internal housekeeping, on the other hand, only
keeps 5 tar files.
So, when lots of options are selected to be included into the dump, the
tars were deleted before they were collected.

Reference: CMK-20621

The number of tars to keep is now set to 10.

Change-Id: I9bcbc1f66e2ffd034725e58b8e345e908d453704
  • Loading branch information
lgetwan committed Dec 16, 2024
1 parent f8fb2cb commit b142016
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmk/base/diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def _format_error(error):
class DiagnosticsDump:
"""Caring about the persistance of diagnostics dumps in the local site"""

_keep_num_dumps = 5
_keep_num_dumps = 10

def __init__(self, parameters: DiagnosticsOptionalParameters | None = None) -> None:
self.fixed_elements = self._get_fixed_elements()
Expand Down

0 comments on commit b142016

Please sign in to comment.