@@ -1414,10 +1414,7 @@ func (c *FrameworkController) syncTaskState(
14141414 apiErr := errorWrap .Cause (err )
14151415 if apiErrors .IsInvalid (apiErr ) {
14161416 // Should be Framework Error instead of Platform Transient Error.
1417- diag := fmt .Sprintf (
1418- "Pod Spec is invalid in TaskRole [%v]: " +
1419- "Triggered by Task [%v][%v]: Diagnostics: %v" ,
1420- taskRoleName , taskRoleName , taskIndex , apiErr )
1417+ diag := fmt .Sprintf ("%v" , apiErr )
14211418 klog .Infof (logPfx + diag )
14221419
14231420 // Ensure pod is deleted in remote to avoid managed pod leak after
@@ -1675,16 +1672,16 @@ func (c *FrameworkController) completeTaskAttempt(
16751672
16761673 // To ensure the completed TaskAttempt is persisted before exposed,
16771674 // we need to wait until next sync to expose it, so manually enqueue a sync.
1678- klog .Infof (logPfx + "Waiting the completed TaskAttempt to be persisted" )
16791675 c .enqueueFrameworkSync (f , "TaskAttemptCompleted" )
1676+ klog .Infof (logPfx + "Waiting the completed TaskAttempt to be persisted" )
16801677 } else {
16811678 f .TransitionTaskState (taskRoleName , taskIndex , ci .TaskAttemptDeletionPending )
16821679
16831680 // To ensure the CompletionStatus is persisted before deleting the pod,
16841681 // we need to wait until next sync to delete the pod, so manually enqueue
16851682 // a sync.
1686- klog .Infof (logPfx + "Waiting the CompletionStatus to be persisted" )
16871683 c .enqueueFrameworkSync (f , "TaskAttemptDeletionPending" )
1684+ klog .Infof (logPfx + "Waiting the CompletionStatus to be persisted" )
16881685 }
16891686}
16901687
@@ -1718,6 +1715,7 @@ func (c *FrameworkController) completeFrameworkAttempt(
17181715 if taskStatus .State != ci .TaskAttemptCompleted {
17191716 c .completeTaskAttempt (f , taskRoleName , taskIndex , true , nil )
17201717 }
1718+ taskStatus .RetryPolicyStatus .RetryDelaySec = nil
17211719 f .TransitionTaskState (taskRoleName , taskIndex , ci .TaskCompleted )
17221720 }
17231721 }
@@ -1737,16 +1735,16 @@ func (c *FrameworkController) completeFrameworkAttempt(
17371735
17381736 // To ensure the completed FrameworkAttempt is persisted before exposed,
17391737 // we need to wait until next sync to expose it, so manually enqueue a sync.
1740- klog .Infof (logPfx + "Waiting the completed FrameworkAttempt to be persisted" )
17411738 c .enqueueFrameworkSync (f , "FrameworkAttemptCompleted" )
1739+ klog .Infof (logPfx + "Waiting the completed FrameworkAttempt to be persisted" )
17421740 } else {
17431741 f .TransitionFrameworkState (ci .FrameworkAttemptDeletionPending )
17441742
17451743 // To ensure the CompletionStatus is persisted before deleting the cm,
17461744 // we need to wait until next sync to delete the cm, so manually enqueue
17471745 // a sync.
1748- klog .Infof (logPfx + "Waiting the CompletionStatus to be persisted" )
17491746 c .enqueueFrameworkSync (f , "FrameworkAttemptDeletionPending" )
1747+ klog .Infof (logPfx + "Waiting the CompletionStatus to be persisted" )
17501748 }
17511749}
17521750
0 commit comments