Werk #15602: mk-job: Cleanup after execution was interrupted

Component Checks & agents
Title mk-job: Cleanup after execution was interrupted
Date Apr 5, 2023
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.3.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0b3 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0p26 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
2.0.0p35 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

Previously, if the wrapper program mk-job was interrupted by a reboot, the Job service would continue to show the job, which was started by mk-job. This job was shown to be running despite it being terminated by the reboot. This can be fixed by removing the corresponding file created by mk-job. With this werk, mk-job cleans up the file after being interrupted. Thus, these terminated jobs will no longer be shown as running.

To the list of all Werks