Skip to content

Commit 8a18b70

Browse files
authored
Remove torchx component args env var (#880)
Differential Revision: D56033363 Pull Request resolved: #881
1 parent 07dcb10 commit 8a18b70

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Diff for: torchx/specs/builders.py

-7
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818

1919
from .api import AppDef, DeviceMount
2020

21-
ENV_TORCHX_COMPONENT_ARGS = "TORCHX_COMPONENT_ARGS"
22-
2321

2422
def _create_args_parser(
2523
cmpnt_fn: Callable[..., AppDef],
@@ -136,7 +134,6 @@ def materialize_appdef(
136134
cmpnt_args: List[str],
137135
cmpnt_defaults: Optional[Dict[str, Any]] = None,
138136
config: Optional[Dict[str, Any]] = None,
139-
component_args_string: Optional[str] = None,
140137
) -> AppDef:
141138
"""
142139
Creates an application by running user defined ``app_fn``.
@@ -191,10 +188,6 @@ def materialize_appdef(
191188

192189
appdef = cmpnt_fn(*function_args, *var_arg, **kwargs)
193190

194-
if component_args_string:
195-
for role in appdef.roles:
196-
role.env[ENV_TORCHX_COMPONENT_ARGS] = component_args_string
197-
198191
return appdef
199192

200193

0 commit comments

Comments
 (0)