Skip to content

Commit

Permalink
Not show task error when batch_tasks failed
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersonBY committed Oct 12, 2024
1 parent 6f6dac3 commit 685c969
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/utilities/workflow/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ def report_workflow_status(self, status: int, error_task: str = ""):

workflow_record.status = "FINISHED" if status == 200 else "FAILED"
workflow_record.data = self.workflow_data
workflow_record.data["error_task"] = error_task
workflow_record.data["error_task"] = error_task if not error_task.endswith("batch_tasks") else ""
workflow_record.end_time = datetime.now()

if workflow_record.run_from == WorkflowRunRecord.RunFromTypes.CHAT:
Expand Down

0 comments on commit 685c969

Please sign in to comment.