mirror of
https://github.com/lukaszraczylo/jobs-manager-operator.git
synced 2026-10-14 05:47:34 +00:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user