pub fn mark_failed_owned( conn: &Connection, job_id: &str, worker_id: Option<&str>, error: &str, ) -> Result<bool, Error>
Mark a job as failed, optionally validating worker ownership.