We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26cb186 commit 648913cCopy full SHA for 648913c
torchx/runner/api.py
@@ -39,6 +39,7 @@
39
ENV_TORCHX_TRACKERS,
40
tracker_config_env_var_name,
41
)
42
+from torchx.util.session import get_session_id_or_create_new, TORCHX_INTERNAL_SESSION_ID
43
44
from torchx.util.types import none_throws
45
from torchx.workspace.api import PkgInfo, WorkspaceBuilder, WorkspaceMixin
@@ -390,6 +391,7 @@ def dryrun(
390
391
role.env[ENV_TORCHX_JOB_ID] = make_app_handle(
392
scheduler, self._name, macros.app_id
393
394
+ role.env[TORCHX_INTERNAL_SESSION_ID] = get_session_id_or_create_new()
395
396
if parent_run_id:
397
role.env[ENV_TORCHX_PARENT_RUN_ID] = parent_run_id
0 commit comments