fix: graph process should raise the actual error when failing

This commit is contained in:
Nicolò Boschi 2024-06-19 14:38:55 +02:00 • committed by Gabriel Luiz Freitas Almeida
commit e45737aaaa
2 changed files with 2 additions and 1 deletions

View file

@ -836,7 +836,7 @@ class Graph:
next_runnable_vertices = await self._execute_tasks(tasks, lock=lock)
except Exception as e:
logger.error(f"Error executing tasks in layer {layer_index}: {e}")
break
raise e
if not next_runnable_vertices:
break
to_process.extend(next_runnable_vertices)

View file

@ -224,6 +224,7 @@ def json_vector_store():
@pytest.fixture(name="client", autouse=True)
def client_fixture(session: Session, monkeypatch, request, load_flows_dir):
monkeypatch.setenv("LANGFLOW_LOG_LEVEL", "DEBUG")
# Set the database url to a test database
if "noclient" in request.keywords:
yield