Werk #13084: Reintroduce housekeeping job before activation runs

Component Core & setup
Title Reintroduce housekeeping job before activation runs
Date Mar 8, 2022
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
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.

To the list of all Werks