Werk #13083: cleanup only very old activations

Component Core & setup
Title cleanup only very old activations
Date Feb 14, 2022
Level Prominent Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.1.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
2.0.0p20 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

During the process of "activating changes" it was possible in certain situations that the activation-ID would disappear before the activation could have a chance to complete.

Investigations showed that a cleanup job removed these activations before they even started. This could then manifest itself as the error: "Missing Activation ID" or a response with a 404 status in the REST API.

This werk fixes this problem by changing the cleanup job to only consider activations which are at least an hour (3600 seconds) old.

There are no further changes needed for this to take effect.

To the list of all Werks