retry_with_logging takes optional account_id arg.