| 37484 |
2 d 17 h |
amit |
/trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/monitored/ |
cron metrics: register the status gauge as -1, not 0
The gauge was created when a job STARTS, and 0 means failure, so any job still
running its first execution after a restart reported FAILED. Selenium-driven and
report jobs take minutes, so this is not a narrow window -- it put ten jobs on
the dashboard as failed after the 2026-08-31 restart when none had failed.
-1 means 'has not finished a run yet'. CronJobFailing matches == 0, so those
jobs are simply absent from the alert until they genuinely complete once. |
|