From f20ee001d6b7ce10acbb2a08fb0d3c0817a7994a Mon Sep 17 00:00:00 2001 From: yuli_han Date: Wed, 28 Feb 2024 10:42:54 -0800 Subject: [PATCH] fix bugs in run.py --- api/py/ai/chronon/repo/run.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api/py/ai/chronon/repo/run.py b/api/py/ai/chronon/repo/run.py index 6c9f5628d..d04fe13c5 100755 --- a/api/py/ai/chronon/repo/run.py +++ b/api/py/ai/chronon/repo/run.py @@ -276,7 +276,10 @@ def set_runtime_env(args): team = "default" # context is the environment in which the job is running, which is provided from the args, # default to be dev. - context = args.env + if args.env: + context = args.env + else: + context = "dev" logging.info( f"Context: {context} -- conf_type: {conf_type} -- team: {team}" )