Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
5a16f8d
add logs feature back
Cristhianzl Dec 1, 2025
268238f
Merge branch 'main' into cz/add-logs-feature
Cristhianzl Dec 1, 2025
12c743e
[autofix.ci] apply automated fixes
autofix-ci[bot] Dec 1, 2025
ba595ff
fix integration tests
Cristhianzl Dec 1, 2025
16d55c4
Merge branch 'cz/add-logs-feature' of github.com:langflow-ai/langflow…
Cristhianzl Dec 1, 2025
2dd96cc
github suggestions
Cristhianzl Dec 1, 2025
797b579
Merge branch 'main' into cz/add-logs-feature
Cristhianzl Dec 15, 2025
21d806d
[autofix.ci] apply automated fixes
autofix-ci[bot] Dec 15, 2025
a21a690
merge fix
Cristhianzl Dec 30, 2025
6add5c5
[autofix.ci] apply automated fixes
autofix-ci[bot] Dec 30, 2025
99d502b
improve code quality
Cristhianzl Dec 30, 2025
6554501
Merge branch 'cz/add-logs-feature' of github.com:langflow-ai/langflow…
Cristhianzl Dec 30, 2025
8305be6
add logs dialog viewer and sanitize result
Cristhianzl Dec 30, 2025
0cc78d5
ruff checkers and format
Cristhianzl Dec 30, 2025
1304ba0
add output to logs
Cristhianzl Dec 30, 2025
549c6c6
remove target column to avoid duplication
Cristhianzl Dec 30, 2025
fc00489
create lfx service to execute transactions standalone lfx
Cristhianzl Dec 30, 2025
e7d729a
[autofix.ci] apply automated fixes
autofix-ci[bot] Dec 30, 2025
79c1e5c
[autofix.ci] apply automated fixes (attempt 2/3)
autofix-ci[bot] Dec 30, 2025
aac5cdf
fix ruff checkers
Cristhianzl Dec 30, 2025
a87d517
Merge branch 'cz/add-logs-feature' of github.com:langflow-ai/langflow…
Cristhianzl Dec 30, 2025
75897be
rever model changes
Cristhianzl Dec 30, 2025
5f4491c
Merge branch 'main' into cz/add-logs-feature
ogabrielluiz Jan 5, 2026
8733229
improve test error
Cristhianzl Jan 5, 2026
707604c
remove unnusual logs
Cristhianzl Jan 5, 2026
1cc047f
remove noQA unecessary
Cristhianzl Jan 5, 2026
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
Prev Previous commit
Next Next commit
fix integration tests
  • Loading branch information
Cristhianzl committed Dec 1, 2025
commit ba595ff55df702c4f045ef069dddeaa99a945b3b
6 changes: 2 additions & 4 deletions src/backend/tests/unit/api/v1/test_transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ def test_transform_transaction_table_single(self):
def test_transform_transaction_table_list(self):
"""Test transforming a list of TransactionTable."""
tables = [
TransactionTable(id=uuid4(), vertex_id=f"vertex-{i}", status="success", flow_id=uuid4())
for i in range(3)
TransactionTable(id=uuid4(), vertex_id=f"vertex-{i}", status="success", flow_id=uuid4()) for i in range(3)
]

result = transform_transaction_table(tables)
Expand All @@ -152,8 +151,7 @@ def test_transform_transaction_table_for_logs_single(self):
def test_transform_transaction_table_for_logs_list(self):
"""Test transforming a list of TransactionTable for logs view."""
tables = [
TransactionTable(id=uuid4(), vertex_id=f"vertex-{i}", status="success", flow_id=uuid4())
for i in range(3)
TransactionTable(id=uuid4(), vertex_id=f"vertex-{i}", status="success", flow_id=uuid4()) for i in range(3)
]

result = transform_transaction_table_for_logs(tables)
Expand Down
16 changes: 5 additions & 11 deletions src/lfx/src/lfx/graph/vertex/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ def __init__(
self.use_result = False
self.build_times: list[float] = []
self.state = VertexStates.ACTIVE
self.log_transaction_tasks: set[asyncio.Task] = set()
self.output_names: list[str] = [
output["name"] for output in self.outputs if isinstance(output, dict) and "name" in output
]
Expand Down Expand Up @@ -535,7 +534,7 @@ async def _log_transaction_async(
target: Vertex | None = None,
error=None,
) -> None:
"""Log a transaction asynchronously with proper task handling and cancellation.
"""Log a transaction asynchronously.

Args:
flow_id: The ID of the flow
Expand All @@ -544,15 +543,10 @@ async def _log_transaction_async(
target: Optional target vertex
error: Optional error information
"""
if self.log_transaction_tasks:
# Safely await and remove completed tasks
task = self.log_transaction_tasks.pop()
await task

# Create and track new task
task = asyncio.create_task(log_transaction(flow_id, source, status, target, error))
self.log_transaction_tasks.add(task)
task.add_done_callback(self.log_transaction_tasks.discard)
try:
await log_transaction(flow_id, source, status, target, error)
except Exception as exc: # noqa: BLE001
logger.debug(f"Error logging transaction: {exc!s}")

async def _get_result(
self,
Expand Down