mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 04:32:42 +00:00
The alert added every attempt of a failed job to the streak, so one job with two retries read as three failures. It also judged a queue by its newest job across all accounts: on a queue that runs one job per account, one account failing every hour beside accounts that succeed never reached the streak, or flipped between failing and recovered. The streak now counts jobs, and is kept per account (the job's userId, or the whole queue for jobs without one). A queue is failing while any account has failed three jobs in a row, and recovered only when a failing account has itself run successfully since. A reminder needs a failure newer than the notice before it, so a one-off job that failed and does not run again is announced once.