Skip to content

fix: add polling for resumable runtimes#17

Merged
cristipufu merged 1 commit intomainfrom
fix/debug_resumable
Nov 20, 2025
Merged

fix: add polling for resumable runtimes#17
cristipufu merged 1 commit intomainfrom
fix/debug_resumable

Conversation

@cristipufu
Copy link
Member

@cristipufu cristipufu commented Nov 15, 2025

Add polling support for suspended executions in debug runtime

Changes

  • Add trigger polling to UiPathDebugRuntime when delegate is UiPathResumableRuntime
  • Poll resume triggers at configurable intervals until data is available: trigger_poll_interval parameter (default: 5.0s, set to 0 to disable)
  • Auto-resume execution when trigger data becomes ready
  • Emit polling events (<polling>, <suspended>, <resumed>) to debug bridge for visibility
  • Support quit during polling via race between sleep and debug bridge signals

Behavior

When execution suspends with a resume trigger (e.g., HITL actions), the debug runtime now:

  1. Emits suspension state to debug bridge
  2. Polls trigger using trigger_manager.read_trigger()
  3. Waits for poll interval OR quit command (whichever comes first)
  4. Auto-resumes execution when data is available
  5. Continues streaming events through the debug bridge

Development Package

  • Add this package as a dependency in your pyproject.toml:
[project]
dependencies = [
  # Exact version:
  "uipath-runtime==0.0.9.dev1000170072",

  # Any version from PR
  "uipath-runtime>=0.0.9.dev1000170000,<0.0.9.dev1000180000"
]

[[tool.uv.index]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"
explicit = true

[tool.uv.sources]
uipath-runtime = { index = "testpypi" }

@cristipufu cristipufu self-assigned this Nov 15, 2025
Copilot AI review requested due to automatic review settings November 15, 2025 06:52

This comment was marked as outdated.

@cristipufu cristipufu force-pushed the fix/debug_resumable branch 2 times, most recently from 558776c to e8dcd7b Compare November 15, 2025 07:04
@cristipufu cristipufu merged commit 94a61e9 into main Nov 20, 2025
11 checks passed
@cristipufu cristipufu deleted the fix/debug_resumable branch November 20, 2025 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants