Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/uipath_langchain/_cli/_runtime/_runtime.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import logging
import os
from typing import List, Optional

from langchain_core.callbacks.base import BaseCallbackHandler
Expand Down Expand Up @@ -54,6 +55,11 @@ async def execute(self) -> Optional[UiPathRuntimeResult]:
tracer = None

try:
if self.context.resume is False and self.context.job_id is None:
# Delete the previous graph state file at debug time
if os.path.exists(self.state_file_path):
os.remove(self.state_file_path)

async with AsyncSqliteSaver.from_conn_string(
self.state_file_path
) as memory:
Expand Down