Skip to content

docs: document wait until and timer race interrupts#949

Open
radu-mocanu wants to merge 3 commits into
mainfrom
docs/wait-until-timeout-interrupts
Open

docs: document wait until and timer race interrupts#949
radu-mocanu wants to merge 3 commits into
mainfrom
docs/wait-until-timeout-interrupts

Conversation

@radu-mocanu

@radu-mocanu radu-mocanu commented Jun 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • document WaitUntil time-based interrupts
  • document racing multiple resume conditions with interrupt([..., WaitUntil(...)])
  • rename the timeout sample to invoke-process-timer-race-agent and include bindings for the child process
  • add a typed time interrupt mock used by resumable runtime tests
  • save resume trigger sets atomically in state.db

Depends on: UiPath/uipath-python#1769
Depends on: UiPath/uipath-runtime-python#138

Development Package

  • Use uipath pack --nolock to get the latest dev build from this PR (requires version range).
  • Add this package as a dependency in your pyproject.toml:
[project]
dependencies = [
  # Exact version:
  "uipath-langchain==0.13.13.dev1009495094",

  # Any version from PR
  "uipath-langchain>=0.13.13.dev1009490000,<0.13.13.dev1009500000"
]

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

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

[tool.uv]
override-dependencies = [
    "uipath-langchain>=0.13.13.dev1009490000,<0.13.13.dev1009500000",
]

Copilot AI review requested due to automatic review settings June 27, 2026 21:46

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Documents time-based typed interrupts (WaitUntil) and interrupt timeout handling, and adds test/mocks to validate typed time interrupt values flow through the resumable runtime trigger plumbing.

Changes:

  • Add runtime test coverage ensuring a timer-shaped typed interrupt is forwarded unchanged to the trigger handler.
  • Introduce a HITL mock graph that uses WaitUntil for timer-style suspension.
  • Extend HITL documentation with WaitUntil behavior and typed interrupt timeout helpers (is_timeout, assert_no_timeout).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
tests/runtime/test_resumable.py Adds a typed timer-shaped interrupt model + trigger handler mock and a new test asserting typed interrupt pass-through.
tests/hitl/mocks/time_trigger_hitl.py Adds a sample HITL graph that suspends via WaitUntil using a time-based resume condition.
docs/human_in_the_loop.md Documents WaitUntil time triggers and typed interrupt timeout handling helpers.

Comment thread tests/runtime/test_resumable.py Outdated
Comment thread tests/runtime/test_resumable.py
Comment thread tests/runtime/test_resumable.py Outdated
@radu-mocanu radu-mocanu force-pushed the docs/wait-until-timeout-interrupts branch from bff285a to 2020cdf Compare June 27, 2026 21:54
@radu-mocanu radu-mocanu force-pushed the docs/wait-until-timeout-interrupts branch 3 times, most recently from 4fe26fd to 0f2c54b Compare June 27, 2026 22:43
@radu-mocanu radu-mocanu force-pushed the docs/wait-until-timeout-interrupts branch from 0f2c54b to b19f291 Compare June 27, 2026 22:48
@radu-mocanu radu-mocanu changed the title docs: document wait until and interrupt timeouts docs: document wait until and timer race interrupts Jun 30, 2026
@sonarqubecloud

Copy link
Copy Markdown

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