Kaynağa Gözat

[Fix-13976][dao] task complete contain force success state (#14611)

Co-authored-by: eye <eye.gu@aloudata.com>
Co-authored-by: xiangzihao <460888207@qq.com>
eye-gu 1 yıl önce
ebeveyn
işleme
50cc65b118

+ 2 - 1
dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/entity/TaskInstance.java

@@ -347,7 +347,8 @@ public class TaskInstance implements Serializable {
 
         return this.getState().isSuccess()
                 || this.getState().isKill()
-                || (this.getState().isFailure() && !taskCanRetry());
+                || (this.getState().isFailure() && !taskCanRetry())
+                || this.getState().isForceSuccess();
     }
 
     public boolean isSubProcess() {