Skip to content

Commit 2a8efd2

Browse files
committed
feat: log runtime construction steps during agent run
1 parent 684009f commit 2a8efd2

3 files changed

Lines changed: 14 additions & 2 deletions

File tree

packages/uipath/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath"
3-
version = "2.13.13"
3+
version = "2.13.14"
44
description = "Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools."
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"

packages/uipath/src/uipath/_cli/cli_run.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import asyncio
2+
import logging
23
from typing import Any
34

45
import click
@@ -41,6 +42,7 @@
4142
from .middlewares import Middlewares
4243

4344
console = ConsoleLogger()
45+
logger = logging.getLogger(__name__)
4446

4547

4648
class _RunDiscoveryError(EntrypointDiscoveryException):
@@ -222,16 +224,19 @@ async def execute() -> None:
222224
factory: UiPathRuntimeFactoryProtocol | None = None
223225
governance_bootstrap: GovernanceBootstrap | None = None
224226
try:
227+
logger.info("[startup] resolving runtime factory")
225228
factory = UiPathRuntimeFactoryRegistry.get(context=ctx)
226229

227230
resolved_entrypoint = entrypoint
228231
if not resolved_entrypoint:
232+
logger.info("[startup] discovering entrypoint")
229233
available = factory.discover_entrypoints()
230234
if len(available) == 1:
231235
resolved_entrypoint = available[0]
232236
else:
233237
raise _RunDiscoveryError(available)
234238

239+
logger.info("[startup] loading factory settings")
235240
factory_settings = await factory.get_settings()
236241
trace_settings = (
237242
factory_settings.trace_settings
@@ -248,6 +253,7 @@ async def execute() -> None:
248253
if factory_settings
249254
else None
250255
)
256+
logger.info("[startup] resolving governance")
251257
governance_bootstrap = await resolve_governance(
252258
agent_framework=agent_framework,
253259
agent_type=agent_type,
@@ -262,11 +268,17 @@ async def execute() -> None:
262268
governance_bootstrap.evaluator
263269
)
264270

271+
logger.info(
272+
"[startup] building runtime and compiling graph "
273+
"(entrypoint=%s)",
274+
resolved_entrypoint,
275+
)
265276
base_runtime = await factory.new_runtime(
266277
resolved_entrypoint,
267278
governance_runtime_id,
268279
**new_runtime_kwargs,
269280
)
281+
logger.info("[startup] runtime ready, starting execution")
270282

271283
if governance_bootstrap is not None:
272284
base_runtime = governance_bootstrap.wrap_runtime(

packages/uipath/uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)