Werk #15347: mk-job: currently running job was not correctly reported

Component Checks & agents
Title mk-job: currently running job was not correctly reported
Date Nov 5, 2024
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.4.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0p23 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

mk-job creates multiple files: a stat file for finished jobs, and a running file for currently running jobs. The check_mk_agent then collects those files. Previously to this change, the sorting of those files was important.

The first file belonging to a certain job determined the state of the aggregated job.

Now the aggregated job will be set to running although the running file is not at first position.

To the list of all Werks