Due to a Salt inconsistency, a failing scheduled job can report to be successful.
For a Scheduled Job, sometimes a failing jobs can have either:
retcode=0
success=True
no retcode defined in each function of the state
The most precise way to know the real status is to parse the "result" field in Event.Return, meaning get the "result" boolean provided in each function of the state.
Due to a Salt inconsistency, a failing scheduled job can report to be successful.
For a Scheduled Job, sometimes a failing jobs can have either:
The most precise way to know the real status is to parse the "result" field in Event.Return, meaning get the "result" boolean provided in each function of the state.
For example, if we have the given state:
We get the "result", which is a boolean, for the dummy test, success and failed. If one of them returns "false", we consider the state failed.