Werk #22579 · Oct 6, 26
job: no crash on negative real time
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.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Checks
- Versions:
- 3.0.0b1Not yet releasedAll Editions
- 2.5.0p16All Editions
- 2.4.0p39All Editions