-
Notifications
You must be signed in to change notification settings - Fork 1
feat: resume runtime on fired triggers #70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
radu-mocanu
commented
Jan 22, 2026
- resume runtime on fired triggers
29cd15f to
740e611
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Adds “auto-resume” behavior to the resumable runtime so that if resume triggers are already fired at the time of suspension, the runtime immediately resumes without requiring an external resume call.
Changes:
- Implement auto-resume flow in
UiPathResumableRuntime.execute()and.stream()when fired triggers are detected. - Introduce
UiPathSuspensionResultto carry both the suspensionUiPathRuntimeResultand any fired trigger resume-map. - Add async tests covering auto-resume scenarios (none/partial/all fired; multiple auto-resumes; stream behavior).
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
src/uipath/runtime/resumable/runtime.py |
Adds fired-trigger detection at suspension time and recursive auto-resume for execute() and stream(). |
src/uipath/runtime/result.py |
Adds UiPathSuspensionResult model used to return both runtime result and fired trigger map. |
tests/test_resumable.py |
Adds coverage for auto-resume behavior across several trigger-firing patterns. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
8424ccb to
c360384
Compare
c360384 to
f88511b
Compare
f88511b to
abef1a7
Compare