pub const MAX_PROMOTION_ATTEMPTS: u8 = 6;Expand description
Maximum number of promotion attempts per entry before the maintenance task gives up and lets the entry expire naturally. With the back-off schedule below this caps wasted work at 1+2+4+8+16 = 31 check intervals (~2.6 h at the default 5 min cadence) per stuck entry. The first 5 attempts fit inside the default 2 h promotion buffer; the 6th is an upper bound that may land past expiry on a stuck entry.