Skip to content

Conversation

@cristipufu
Copy link
Member

@cristipufu cristipufu commented Dec 20, 2025

Description

This PR updates the LangGraph runtime to support multiple parallel interrupts and refactors the storage layer for improved scalability and correctness.

Refs:

Multiple Interrupt Support:

  • Updated UiPathLangGraphRuntime to handle multiple parallel interrupts by filtering active interrupts based on graph_state.next nodes

Storage Refactoring:

  • Simplified SqliteResumableStorage schema to store triggers as JSON in a data column with runtime_id as indexed column
  • Changed save_trigger/get_latest_trigger to save_triggers/get_triggers to handle multiple triggers
  • Added delete_trigger method for individual trigger removal
  • Enabled SQLite WAL mode and added indexes for better concurrency
  • Added new save_value and get_value methods for general-purpose key-value storage with runtime and namespace scoping

Dependencies:

Testing:

  • Added comprehensive tests for parallel interrupt scenarios and concurrent storage operations

Development Package

  • Add this package as a dependency in your pyproject.toml:
[project]
dependencies = [
  # Exact version:
  "uipath-langchain==0.2.0.dev1003721723",

  # Any version from PR
  "uipath-langchain>=0.2.0.dev1003720000,<0.2.0.dev1003730000"
]

[[tool.uv.index]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"
explicit = true

[tool.uv.sources]
uipath-langchain = { index = "testpypi" }

@cristipufu cristipufu requested a review from Copilot December 20, 2025 17:58
@cristipufu cristipufu self-assigned this Dec 20, 2025
@cristipufu cristipufu force-pushed the fix/update_storage branch 2 times, most recently from 9fe8632 to 1dfd4ec Compare December 20, 2025 18:01

This comment was marked as outdated.

@cristipufu cristipufu force-pushed the fix/update_storage branch 2 times, most recently from fa9bb69 to dd1b36b Compare December 20, 2025 18:22
@cristipufu cristipufu force-pushed the fix/update_storage branch 2 times, most recently from 3c52af0 to b0052df Compare December 25, 2025 09:42
@cristipufu cristipufu changed the title fix: scope storage to runtime id fix: support multiple resume triggers + generic kv store Dec 25, 2025
@cristipufu cristipufu force-pushed the fix/update_storage branch 6 times, most recently from fc90bad to 0886645 Compare December 26, 2025 11:24
@cristipufu cristipufu merged commit 8771b31 into main Dec 26, 2025
59 of 61 checks passed
@cristipufu cristipufu deleted the fix/update_storage branch December 26, 2025 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants