From 48ff152a87f67200cf7ba731f98d30b4365a47f2 Mon Sep 17 00:00:00 2001 From: Christopher Chou Date: Fri, 26 Jul 2024 21:45:44 -0700 Subject: [PATCH] Init --- sky/task.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sky/task.py b/sky/task.py index cf26e13717a..cebc616dc6d 100644 --- a/sky/task.py +++ b/sky/task.py @@ -393,6 +393,11 @@ def from_yaml_config( config['service'] = _fill_in_env_vars(config['service'], config.get('envs', {})) + # Fill in any Task.envs into workdir + if config.get('workdir') is not None: + config['workdir'] = _fill_in_env_vars(config['workdir'], + config.get('envs', {})) + task = Task( config.pop('name', None), run=config.pop('run', None),