@@ -64,7 +64,7 @@ def run( # noqa: C901, PLR0912
64
64
func : Callable ,
65
65
func_args : tuple [Any ] | None = None ,
66
66
func_kwargs : dict [str , Any ] | None = None ,
67
- log_handlers_builder : Callable [[], list [Handler ]] | Literal ["auto" ] | None = "auto" ,
67
+ handler_factory : Callable [[], list [Handler ]] | Literal ["auto" ] | None = "auto" ,
68
68
) -> LaunchResult :
69
69
"""Run a function using the :mod:`torchrunx.Launcher` configuration."""
70
70
if not dist .is_available ():
@@ -88,7 +88,7 @@ def run( # noqa: C901, PLR0912
88
88
# Start logging server (recieves LogRecords from agents/workers)
89
89
90
90
logging_server_args = LoggingServerArgs (
91
- log_handlers_builder = log_handlers_builder ,
91
+ handler_factory = handler_factory ,
92
92
logging_hostname = launcher_hostname ,
93
93
logging_port = logging_port ,
94
94
hostnames = hostnames ,
@@ -214,7 +214,7 @@ def launch(
214
214
),
215
215
extra_env_vars : tuple [str , ...] = (),
216
216
env_file : str | os .PathLike | None = None ,
217
- log_handlers_builder : Callable [[], list [Handler ]] | Literal ["auto" ] | None = "auto" ,
217
+ handler_factory : Callable [[], list [Handler ]] | Literal ["auto" ] | None = "auto" ,
218
218
) -> LaunchResult :
219
219
"""Launch a distributed PyTorch function on the specified nodes.
220
220
@@ -235,7 +235,7 @@ def launch(
235
235
Supports bash pattern matching syntax.
236
236
extra_env_vars: Additional user-specified environment variables to copy.
237
237
env_file: Path to a file (e.g., `.env`) with additional environment variables to copy.
238
- log_handlers_builder : Function to build handlers for managing agent and worker logs.
238
+ handler_factory : Function to build logging handlers that process agent and worker logs.
239
239
Defaults to an automatic basic logging scheme.
240
240
241
241
Raises:
@@ -257,7 +257,7 @@ def launch(
257
257
func = func ,
258
258
func_args = func_args ,
259
259
func_kwargs = func_kwargs ,
260
- log_handlers_builder = log_handlers_builder ,
260
+ handler_factory = handler_factory ,
261
261
)
262
262
263
263
0 commit comments