Werk #22579: job: no crash on negative real time
| Component | Checks & agents | ||||||
| Title | job: no crash on negative real time | ||||||
| Date | Oct 6, 2026 | ||||||
| Level | Trivial Change | ||||||
| Class | Bug Fix | ||||||
| Compatibility | Compatible - no manual interaction needed | ||||||
| Checkmk versions & editions |
|
If a job monitored via mk-job reported a negative real time, the
Job service crashed with ValueError: Cannot render negative
timespan. This happens when the system clock is set back while the
job is running, for example by a job that runs chronyc makestep.
The service now goes to WARN and reports the negative value with a hint to check the system time. The exit code and job age are evaluated as before.