Werk #13084: Reintroduce housekeeping job before activation runs

Component Core & setup
Title Reintroduce housekeeping job before activation runs
Date Mar 8, 2022
Checkmk Editon Checkmk Raw (CRE)
Checkmk Version 2.2.0i1 2.1.0b2 2.0.0p22
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

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