Skip to content

Commit ef6a859

Browse files
committed
fix: assign fired_triggers var
1 parent 55baa43 commit ef6a859

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

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.8.3"
3+
version = "0.8.4"
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: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ async def stream(
115115

116116
final_result: UiPathRuntimeResult | None = None
117117
execution_completed = False
118+
fired_triggers = None
118119

119120
while not execution_completed:
120121
async for event in self.delegate.stream(input, options=options):
@@ -133,14 +134,14 @@ async def stream(
133134
yield suspension_result
134135
execution_completed = True
135136

136-
# Note: when resuming a job, orchestrator deletes all triggers associated with it,
137-
# thus we can resume the runtime at this point without worrying a trigger may be fired 'twice'
138-
input = fired_triggers
137+
# Note: when resuming a job, orchestrator deletes all triggers associated with it,
138+
# thus we can resume the runtime at this point without worrying a trigger may be fired 'twice'
139+
input = fired_triggers
139140

140-
if not options:
141-
options = UiPathStreamOptions(resume=True)
142-
else:
143-
options.resume = True
141+
if not options:
142+
options = UiPathStreamOptions(resume=True)
143+
else:
144+
options.resume = True
144145

145146
async def _restore_resume_input(
146147
self, input: dict[str, Any] | None

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)