feat: implement SSE for data source node processing and completion events, replacing previous run methods

This commit is contained in:
twwu
2025-06-18 15:06:50 +08:00
parent 4b3a54633f
commit f85e6a0dea
6 changed files with 115 additions and 168 deletions

17
web/types/pipeline.tsx Normal file
View File

@ -0,0 +1,17 @@
export type DataSourceNodeProcessingResponse = {
event: 'datasource_processing'
total: number
completed: number
}
export type DataSourceNodeError = {
event: 'datasource_error'
message: string
code?: string
}
export type DataSourceNodeCompletedResponse = {
event: 'datasource_completed'
data: any
time_consuming?: number
}