feat: support composite interrupt resume triggers#1769
Conversation
There was a problem hiding this comment.
Pull request overview
Adds first-class timeout support for typed interrupt suspend values in uipath-platform, enabling “race” semantics where an interrupt can resume either from its normal trigger or from a timer-based timeout, and exposes helpers to detect/raise on timeout resume values.
Changes:
- Introduces
InterruptTimeoutMixinand adds an optionaltimeoutfield to existing interrupt models. - Adds timeout resume-value helpers (
get_timeout,is_timeout,assert_no_timeout,UiPathTimeoutError) and integrates timeout handling into resume-trigger reading/creation viacreate_triggers(). - Bumps package versions and updates
uipath’s dependency onuipath-platform.
Reviewed changes
Copilot reviewed 6 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/uipath/uv.lock | Updates locked editable package versions for uipath and uipath-platform. |
| packages/uipath/pyproject.toml | Bumps uipath version and updates minimum uipath-platform dependency. |
| packages/uipath-platform/uv.lock | Updates locked editable package version for uipath-platform. |
| packages/uipath-platform/src/uipath/platform/resume_triggers/_timeout.py | Adds timeout metadata parsing + UiPathTimeoutError helpers for timeout resume values. |
| packages/uipath-platform/src/uipath/platform/resume_triggers/_protocol.py | Adds create_triggers() timeout racing and timeout-aware TIMER trigger reading. |
| packages/uipath-platform/src/uipath/platform/resume_triggers/init.py | Exposes timeout helper APIs at the package level. |
| packages/uipath-platform/src/uipath/platform/common/interrupt_models.py | Introduces InterruptTimeoutMixin and applies it to interrupt models. |
| packages/uipath-platform/pyproject.toml | Bumps uipath-platform version. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
37b0070 to
bb72c62
Compare
23769b2 to
b476b03
Compare
1777c39 to
0daa6e0
Compare
b476b03 to
df621cb
Compare
0daa6e0 to
02b4b44
Compare
3208a7a to
c78508c
Compare
c78508c to
5abd85e
Compare
|
🚨 Heads up:
|
🚨 Heads up:
|


Summary
WaitUntiltimer triggersinterrupt([InvokeProcess(...), WaitUntil(...)])Depends on: UiPath/uipath-runtime-python#138
Notes
uipath-platformis bumped to0.2.0so olderuipathranges cannot resolve the new runtime protocol implementation.uipathis bumped to2.13.0because it now depends on the new runtime and platform minors.0.12.1is resolvable andpackages/uipath/uv.lockhas been regenerated against it.