feat: add interrupt timeout 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.
🚨 Heads up:
|
37b0070 to
bb72c62
Compare
23769b2 to
b476b03
Compare
🚨 Heads up:
|
Summary
create_triggersDepends on: #1768
Depends on: UiPath/uipath-runtime-python#138
Development Packages
uipath-platform
uipath