feat: instrument agent run startup for hang diagnosis#1825
Conversation
20f2b15 to
2a8efd2
Compare
There was a problem hiding this comment.
Pull request overview
Adds explicit [startup] INFO log markers to the uipath run CLI path so serverless job logs show progress through runtime construction steps (factory resolve, entrypoint discovery, settings load, governance resolve, runtime build/graph compile, execution start), making pre-execution hangs diagnosable. Also bumps the uipath package version to 2.13.14.
Changes:
- Emit
[startup]INFO progress logs around major runtime construction steps inuipath run. - Bump
uipathpackage version from2.13.13→2.13.14(and sync lockfile entry).
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/uipath/src/uipath/_cli/cli_run.py | Adds [startup] INFO markers during runtime setup to pinpoint pre-execution stalls. |
| packages/uipath/pyproject.toml | Bumps package version to 2.13.14. |
| packages/uipath/uv.lock | Updates the lockfile’s uipath package entry to 2.13.14. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
2a8efd2 to
2727b8c
Compare
|
🚨 Heads up:
|


Summary
[startup]progress logs around each runtime construction step inuipath run(factory resolve, entrypoint discovery, factory settings, governance resolve, runtime build / graph compile, execution start)UIPATH_STARTUP_TRACEBACK_SECONDS, auto-enabled in the serverless runtime (120s default)Why
serverless agent jobs can stall for the full ~15 min execution window before the agent ever starts, with zero log output in that window. the block sits before
AgentRun.Startand even before the first application log, so there is no way to tell whether it is module import or runtime construction, or which frame is stuck. the step logs name the last stage reached, and the watchdog dumps the actual stack of the stalled process, both surfaced in the normal job logs without needing cluster access.Development Packages
uipath