pub fn validate_batch_single_doing(flat_tasks: &[FlatTask]) -> Result<()>
Validate that at most one task in the batch has status=‘doing’.