SIGN IN SIGN UP

[Jobs] expanduser the consolidated-launch managed_jobs log dir (#9751)

In `_consolidated_launch`, the submit-job log directory is built from
`SKY_LOGS_DIRECTORY` (`~/sky_logs`) and passed straight to `os.makedirs`
without `expanduser`. `os.makedirs` does not expand `~`, so this creates
a directory literally named `~` relative to the API server's working
directory instead of `$HOME/sky_logs/managed_jobs`, leaving submit-job
logs in a stray `./~/sky_logs/managed_jobs/` tree.

Wrap the path in `os.path.expanduser`, matching the existing pattern in
`scheduler.py` and `controller_utils.py`.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
K
Kevin Mingtarja committed
5da0fe4ec8ef74b81908b97dcec99dd220e512a8
Parent: f0f8f38
Committed by GitHub <noreply@github.com> on 5/29/2026, 1:01:56 AM