Skip to content

Commit 633e308

Browse files
authored
Merge pull request #37 from UiPath/fix/graceful_debug_termination
fix: resumable breakpoint result
2 parents 79251a4 + a3d8720 commit 633e308

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ uv add uipath-runtime
2626

2727
## Developer Tools
2828

29-
For testing and debugging your runtimes, check out [`uipath-dev`](https://github.com/uipath/uipath-dev-python) - an interactive terminal application for building, testing, and debugging UiPath Python runtimes, agents, and automation scripts.
29+
Check out [`uipath-dev`](https://github.com/uipath/uipath-dev-python) - an interactive terminal application for building, testing, and debugging UiPath Python runtimes, agents, and automation scripts.
3030

3131
## Runtime Protocols
3232

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath-runtime"
3-
version = "0.1.0"
3+
version = "0.1.1"
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"

src/uipath/runtime/resumable/runtime.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
UiPathRuntimeProtocol,
99
UiPathStreamOptions,
1010
)
11+
from uipath.runtime.debug import UiPathBreakpointResult
1112
from uipath.runtime.events import UiPathRuntimeEvent
1213
from uipath.runtime.result import UiPathRuntimeResult, UiPathRuntimeStatus
1314
from uipath.runtime.resumable.protocols import (
@@ -136,6 +137,9 @@ async def _handle_suspension(
136137
if result.status != UiPathRuntimeStatus.SUSPENDED:
137138
return result
138139

140+
if isinstance(result, UiPathBreakpointResult):
141+
return result
142+
139143
# Check if trigger already exists in result
140144
if result.trigger:
141145
await self.storage.save_trigger(result.trigger)

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)