pub fn get_attempt_count(conn: &Connection, job_id: &str) -> Result<u32>
Get the recorded attempt count for a job.