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: If96f97a95958824ffcc72deb44b70f9bc287e02c
  • Loading branch information
lgetwan committed Dec 16, 2024
1 parent 82b9fb6 commit 310a80d
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 @@ -136,7 +136,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 310a80d

Please sign in to comment.