From 656c27c3a3345d0d2cf31c16f780b573c3dea09a Mon Sep 17 00:00:00 2001 From: Sam Shleifer Date: Mon, 21 Sep 2020 17:26:24 -0400 Subject: [PATCH] [s2s] save hostname with repo info (#7301) * save hostname --- examples/seq2seq/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/seq2seq/utils.py b/examples/seq2seq/utils.py index 6b4c0237c7..0352f92647 100644 --- a/examples/seq2seq/utils.py +++ b/examples/seq2seq/utils.py @@ -4,6 +4,7 @@ import linecache import math import os import pickle +import socket from logging import getLogger from pathlib import Path from typing import Callable, Dict, Iterable, List, Union @@ -372,6 +373,7 @@ def get_git_info(): "repo_id": str(repo), "repo_sha": str(repo.head.object.hexsha), "repo_branch": str(repo.active_branch), + "hostname": str(socket.gethostname()), } return repo_infos