Werk #13084: Reintroduce housekeeping job before activation runs

Komponente Core & setup
Titel Reintroduce housekeeping job before activation runs
Datum 08.03.2022
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen
Checkmk versions & editions
2.2.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0b2 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
2.0.0p22 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

In previous versions, the activation housekeeping job was changed to a background-job running every minute because the run sometimes took longer than 2 minutes (a hard timeout).

Due to race conditions this change led to errors (missing activations) in some cases. Only having it delete activations older than 1h however led to exhaustion of disk-space in some cases.

This change reintroduces the previously dropped house-keeping run right before the activation is started, while keeping the periodically run house-keeping job to clean up afterwards.

Zur Liste aller Werks