pub fn generate_dedup_key(task_type: &str, payload: Option<&[u8]>) -> StringExpand description
Generate a dedup key by hashing the task type and payload.
Produces a hex-encoded SHA-256 digest of task_type concatenated with
the payload bytes (or an empty slice when there is no payload).