From d9e81da3b88ca41acb57307d39e09ded947b44d9 Mon Sep 17 00:00:00 2001 From: lanlin Date: Sat, 27 Jul 2019 08:09:54 +0800 Subject: [PATCH] [tune] configurable maximum length of trial identifier (#5287) --- python/ray/tune/trial.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/ray/tune/trial.py b/python/ray/tune/trial.py index a5f9cef3a..1221c2a53 100644 --- a/python/ray/tune/trial.py +++ b/python/ray/tune/trial.py @@ -30,7 +30,7 @@ from ray.tune.result import (DEFAULT_RESULTS_DIR, DONE, HOSTNAME, PID, from ray.utils import binary_to_hex, hex_to_binary DEBUG_PRINT_INTERVAL = 5 -MAX_LEN_IDENTIFIER = 130 +MAX_LEN_IDENTIFIER = int(os.environ.get("MAX_LEN_IDENTIFIER", 130)) logger = logging.getLogger(__name__)