fix(controller): report Failed when a group fails

checkOverallStatus overwrote the Failed status with Running. A failed workflow
stayed Running and kept requeueing. It now stays Failed and the failure event
fires once. Also remove err shadowing in the visualization client.
This commit is contained in:
2026-10-02 03:59:44 +01:00
parent 5ebe8d8c72
commit bdfc781044
3 changed files with 15 additions and 14 deletions
+1 -4
View File
@@ -315,10 +315,7 @@ func (s *ScrapperTestSuite) TestCheckOverallStatus_GroupFailed() {
cp := s.newConnPackage(mj)
cp.checkOverallStatus()
// Note: Current implementation sets running status after checking failed
// This is the actual behavior - the status goes through the failed branch
// but then gets overwritten by the final else block
s.Equal(ExecutionStatusRunning, mj.Status)
s.Equal(ExecutionStatusFailed, mj.Status)
}
func (s *ScrapperTestSuite) TestCheckOverallStatus_GroupRunning() {