Skip to content

Commit

Permalink
feat: add log_builds parameter to build_flow for optional vertex buil…
Browse files Browse the repository at this point in the history
…d logging (#3262)
  • Loading branch information
ogabrielluiz authored Aug 9, 2024
1 parent d0484ba commit b0f80e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/backend/base/langflow/api/v1/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ async def build_flow(
files: Optional[list[str]] = None,
stop_component_id: Optional[str] = None,
start_component_id: Optional[str] = None,
log_builds: Optional[bool] = True,
chat_service: "ChatService" = Depends(get_chat_service),
current_user=Depends(get_current_active_user),
telemetry_service: "TelemetryService" = Depends(get_telemetry_service),
Expand Down Expand Up @@ -250,7 +251,7 @@ async def _build_vertex(vertex_id: str, graph: "Graph") -> VertexBuildResponse:
result_data_response.message = artifacts

# Log the vertex build
if not vertex.will_stream:
if not vertex.will_stream and log_builds:
background_tasks.add_task(
log_vertex_build,
flow_id=flow_id_str,
Expand Down

0 comments on commit b0f80e4

Please sign in to comment.