Skip to content

Commit

Permalink
exp: Include STUDIO_REPO_URL in run_env.
Browse files Browse the repository at this point in the history
Closes #8951.
  • Loading branch information
daavoo committed Mar 13, 2023
1 parent 16ecd53 commit 9b834c6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dvc/repo/experiments/queue/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
Union,
)

from dvc_studio_client.env import STUDIO_REPO_URL
from dvc_studio_client.post_live_metrics import get_studio_repo_url
from funcy import retry

from dvc.dependency import ParamsDependency
Expand Down Expand Up @@ -415,6 +417,10 @@ def _stash_exp( # noqa: PLR0915, C901
run_env[DVC_EXP_NAME] = name
if resume_rev:
run_env[DVCLIVE_RESUME] = "1"
studio_repo_url = get_studio_repo_url()
if studio_repo_url is not None:
run_env[STUDIO_REPO_URL] = studio_repo_url

self._pack_args(*args, run_env=run_env, **kwargs)

# save experiment as a stash commit
Expand Down

0 comments on commit 9b834c6

Please sign in to comment.