mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-19 03:44:34 +08:00
@@ -152,16 +152,12 @@ func (s *WorkflowServer) GetWorkflowExecutionLogs(req *api.GetWorkflowExecutionL
|
||||
}
|
||||
|
||||
le := &v1.LogEntry{}
|
||||
ticker := time.NewTicker(time.Second)
|
||||
for {
|
||||
select {
|
||||
case le = <-watcher:
|
||||
case <-ticker.C:
|
||||
}
|
||||
|
||||
le = <-watcher
|
||||
if le == nil {
|
||||
break
|
||||
}
|
||||
|
||||
if err := stream.Send(&api.LogEntry{
|
||||
Timestamp: le.Timestamp.String(),
|
||||
Content: le.Content,
|
||||
|
Reference in New Issue
Block a user