Skip to content

Commit

Permalink
fix(api): remove results from workflows response (keephq#1091)
Browse files Browse the repository at this point in the history
  • Loading branch information
talboren authored Apr 10, 2024
1 parent 6d441e8 commit a2cc359
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 9 additions & 1 deletion keep/api/core/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,15 @@ def finish_workflow_execution(tenant_id, workflow_id, execution_id, status, erro
def get_workflow_executions(tenant_id, workflow_id, limit=50):
with Session(engine) as session:
workflow_executions = session.exec(
select(WorkflowExecution)
select(
WorkflowExecution.id,
WorkflowExecution.workflow_id,
WorkflowExecution.started,
WorkflowExecution.status,
WorkflowExecution.triggered_by,
WorkflowExecution.execution_time,
WorkflowExecution.error,
)
.where(WorkflowExecution.tenant_id == tenant_id)
.where(WorkflowExecution.workflow_id == workflow_id)
.where(
Expand Down
1 change: 0 additions & 1 deletion keep/api/routes/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,6 @@ def get_workflow_by_id(
"triggered_by": workflow_execution.triggered_by,
"error": workflow_execution.error,
"execution_time": workflow_execution.execution_time,
"results": workflow_execution.results,
}
workflow_executions_dtos.append(workflow_execution_dto)

Expand Down

0 comments on commit a2cc359

Please sign in to comment.