Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
BabyChouSr committed Jul 27, 2024
1 parent e794971 commit 48ff152
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sky/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 48ff152

Please sign in to comment.