Skip to content

Commit 2e5abd3

Browse files
committed
fix: treat timer triggers as external resume triggers
1 parent b5d481d commit 2e5abd3

3 files changed

Lines changed: 15 additions & 10 deletions

File tree

‎pyproject.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[project]
22
name = "uipath-runtime"
3-
version = "0.11.4"
3+
version = "0.11.5"
44
description = "Runtime abstractions and interfaces for building agents and automation scripts in the UiPath ecosystem"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"
77
dependencies = [
8-
"uipath-core>=0.5.22,<0.6.0",
8+
"uipath-core>=0.5.23,<0.6.0",
99
]
1010
classifiers = [
1111
"Intended Audience :: Developers",

‎src/uipath/runtime/resumable/runtime.py‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,9 @@ async def stream(
147147
async def _get_fired_triggers(self) -> dict[str, Any] | None:
148148
"""Check stored triggers for any that have already fired.
149149
150-
Skips async-external triggers (API, Inbox) whose payloads only arrive
151-
asynchronously and cannot be polled at suspend time.
150+
Skips external triggers (API, Inbox, Timer) whose payloads only arrive
151+
asynchronously or through Orchestrator resume and cannot be polled at
152+
suspend time.
152153
153154
Returns:
154155
A resume map of {interrupt_id: resume_data} for fired triggers, or None.
@@ -161,7 +162,11 @@ async def _get_fired_triggers(self) -> dict[str, Any] | None:
161162
t
162163
for t in triggers
163164
if t.trigger_type
164-
not in (UiPathResumeTriggerType.API, UiPathResumeTriggerType.INBOX)
165+
not in (
166+
UiPathResumeTriggerType.API,
167+
UiPathResumeTriggerType.INBOX,
168+
UiPathResumeTriggerType.TIMER,
169+
)
165170
]
166171
return await self._build_resume_map(pollable_triggers)
167172

‎uv.lock‎

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)