torchx-nightly 2025.9.11__py3-none-any.whl → 2025.9.13__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of torchx-nightly might be problematic. Click here for more details.

torchx/runner/api.py CHANGED
@@ -54,7 +54,7 @@ from torchx.tracker.api import (
54
54
  from torchx.util.session import get_session_id_or_create_new, TORCHX_INTERNAL_SESSION_ID
55
55
 
56
56
  from torchx.util.types import none_throws
57
- from torchx.workspace.api import PkgInfo, WorkspaceBuilder, WorkspaceMixin
57
+ from torchx.workspace.api import WorkspaceMixin
58
58
 
59
59
  if TYPE_CHECKING:
60
60
  from typing_extensions import Self
@@ -419,12 +419,7 @@ class Runner:
419
419
  sched = self._scheduler(scheduler)
420
420
  resolved_cfg = sched.run_opts().resolve(cfg)
421
421
 
422
- # early validation before build workspace
423
- with log_event(
424
- "pre_build_validate",
425
- scheduler,
426
- ):
427
- sched._pre_build_validate(app, scheduler, resolved_cfg)
422
+ sched._pre_build_validate(app, scheduler, resolved_cfg)
428
423
 
429
424
  if workspace and isinstance(sched, WorkspaceMixin):
430
425
  role = app.roles[0]
@@ -434,13 +429,7 @@ class Runner:
434
429
  logger.info(
435
430
  'To disable workspaces pass: --workspace="" from CLI or workspace=None programmatically.'
436
431
  )
437
- with log_event(
438
- "build_workspace_and_update_role",
439
- scheduler,
440
- ) as ctx:
441
- sched.build_workspace_and_update_role(role, workspace, resolved_cfg)
442
- ctx._torchx_event.app_image = role.image
443
- ctx._torchx_event.workspace = workspace
432
+ sched.build_workspace_and_update_role(role, workspace, resolved_cfg)
444
433
 
445
434
  if old_img != role.image:
446
435
  logger.info(
@@ -453,11 +442,7 @@ class Runner:
453
442
  " Either a patch was built or no changes to workspace was detected."
454
443
  )
455
444
 
456
- with log_event(
457
- "validate",
458
- scheduler,
459
- ):
460
- sched._validate(app, scheduler, resolved_cfg)
445
+ sched._validate(app, scheduler, resolved_cfg)
461
446
  dryrun_info = sched.submit_dryrun(app, resolved_cfg)
462
447
  dryrun_info._scheduler = scheduler
463
448
  return dryrun_info
torchx/workspace/api.py CHANGED
@@ -9,6 +9,7 @@
9
9
  import abc
10
10
  import fnmatch
11
11
  import posixpath
12
+ import warnings
12
13
  from dataclasses import dataclass
13
14
  from typing import Any, Dict, Generic, Iterable, Mapping, Tuple, TYPE_CHECKING, TypeVar
14
15
 
@@ -35,11 +36,33 @@ class PkgInfo(Generic[PackageType]):
35
36
  lazy_overrides: Dict[str, Any]
36
37
  metadata: PackageType
37
38
 
39
+ def __post_init__(self) -> None:
40
+ msg = (
41
+ f"{self.__class__.__name__} is deprecated and will be removed in the future."
42
+ " Consider forking this class if your project depends on it."
43
+ )
44
+ warnings.warn(
45
+ msg,
46
+ FutureWarning,
47
+ stacklevel=2,
48
+ )
49
+
38
50
 
39
51
  @dataclass
40
52
  class WorkspaceBuilder(Generic[PackageType, WorkspaceConfigType]):
41
53
  cfg: WorkspaceConfigType
42
54
 
55
+ def __post_init__(self) -> None:
56
+ msg = (
57
+ f"{self.__class__.__name__} is deprecated and will be removed in the future."
58
+ " Consider forking this class if your project depends on it."
59
+ )
60
+ warnings.warn(
61
+ msg,
62
+ FutureWarning,
63
+ stacklevel=2,
64
+ )
65
+
43
66
  @abc.abstractmethod
44
67
  def build_workspace(self, sync: bool = True) -> PkgInfo[PackageType]:
45
68
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: torchx-nightly
3
- Version: 2025.9.11
3
+ Version: 2025.9.13
4
4
  Summary: TorchX SDK and Components
5
5
  Home-page: https://github.com/pytorch/torchx
6
6
  Author: TorchX Devs
@@ -56,7 +56,7 @@ torchx/pipelines/kfp/__init__.py,sha256=8iJ8lql_fxwuk9VCYSxXnX6tPL228fB5mDZpOs-k
56
56
  torchx/pipelines/kfp/adapter.py,sha256=5GeHULjb1kxG6wJtYVLpNkgdzUi4iYEaR42VFOwT6fY,9045
57
57
  torchx/pipelines/kfp/version.py,sha256=mYBxd6bm4MeR34D--xo-JLQ9wHeAl_ZQLwbItCf9tr0,539
58
58
  torchx/runner/__init__.py,sha256=x8Sz7s_tLxPgJgvWIhK4ju9BNZU61uBFywGwDY6CqJs,315
59
- torchx/runner/api.py,sha256=CJmTjoV2kB0FVqeE9B-bYaFyiMuQsZCY32kY13CIk6I,30559
59
+ torchx/runner/api.py,sha256=ryrsK0hOW9p6oJ5Wsu0h1vx16eMEPrngL0IH2L_77ww,29995
60
60
  torchx/runner/config.py,sha256=20X-vveAJVjb1AjjDSC6x_BVcdrTj9_ZLt_CHTykiFo,18266
61
61
  torchx/runner/events/__init__.py,sha256=1_y0bojXl3FL0zlAj7BI4Dg5cXKXUmaa2jZbVH0EDUA,5268
62
62
  torchx/runner/events/api.py,sha256=pPLfowWTXtN_XcrEDNI45pE6Ijvdc_Gdxq76RduqgGE,2664
@@ -112,12 +112,12 @@ torchx/util/shlex.py,sha256=eXEKu8KC3zIcd8tEy9_s8Ds5oma8BORr-0VGWNpG2dk,463
112
112
  torchx/util/strings.py,sha256=GkLWCmYS89Uv6bWc5hH0XwvHy7oQmprv2U7axC4A2e8,678
113
113
  torchx/util/types.py,sha256=xelu9gOUQ540GvvzDqk1wYb4csB09OgYQJwlVz62O5o,8889
114
114
  torchx/workspace/__init__.py,sha256=FqN8AN4VhR1C_SBY10MggQvNZmyanbbuPuE-JCjkyUY,798
115
- torchx/workspace/api.py,sha256=PtDkGTC5lX03pRoYpuMz2KCmM1ZOycRP1UknqvNb97Y,6341
115
+ torchx/workspace/api.py,sha256=yQcRHs_c56ayiUf94c_w5JTZCTe9e1ARFzlsiWpfl18,7019
116
116
  torchx/workspace/dir_workspace.py,sha256=npNW_IjUZm_yS5r-8hrRkH46ndDd9a_eApT64m1S1T4,2268
117
117
  torchx/workspace/docker_workspace.py,sha256=PFu2KQNVC-0p2aKJ-W_BKA9ZOmXdCY2ABEkCExp3udQ,10269
118
- torchx_nightly-2025.9.11.dist-info/LICENSE,sha256=WVHfXhFC0Ia8LTKt_nJVYobdqTJVg_4J3Crrfm2A8KQ,1721
119
- torchx_nightly-2025.9.11.dist-info/METADATA,sha256=38npZBvhuRMn5mHdg_tuQNWP3Mp0xEWaDdpRbV2YE58,6104
120
- torchx_nightly-2025.9.11.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
121
- torchx_nightly-2025.9.11.dist-info/entry_points.txt,sha256=T328AMXeKI3JZnnxfkEew2ZcMN1oQDtkXjMz7lkV-P4,169
122
- torchx_nightly-2025.9.11.dist-info/top_level.txt,sha256=pxew3bc2gsiViS0zADs0jb6kC5v8o_Yy_85fhHj_J1A,7
123
- torchx_nightly-2025.9.11.dist-info/RECORD,,
118
+ torchx_nightly-2025.9.13.dist-info/LICENSE,sha256=WVHfXhFC0Ia8LTKt_nJVYobdqTJVg_4J3Crrfm2A8KQ,1721
119
+ torchx_nightly-2025.9.13.dist-info/METADATA,sha256=yrWkHjQf48QZQLScJhxYq2wT2z1GFT_UONFqXYkC7xs,6104
120
+ torchx_nightly-2025.9.13.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
121
+ torchx_nightly-2025.9.13.dist-info/entry_points.txt,sha256=T328AMXeKI3JZnnxfkEew2ZcMN1oQDtkXjMz7lkV-P4,169
122
+ torchx_nightly-2025.9.13.dist-info/top_level.txt,sha256=pxew3bc2gsiViS0zADs0jb6kC5v8o_Yy_85fhHj_J1A,7
123
+ torchx_nightly-2025.9.13.dist-info/RECORD,,