TaoZex commented on code in PR #4867:
URL: https://github.com/apache/seatunnel/pull/4867#discussion_r1214528392


##########
seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/checkpoint/CheckpointCoordinatorStatus.java:
##########
@@ -18,9 +18,18 @@
 package org.apache.seatunnel.engine.server.checkpoint;
 
 public enum CheckpointCoordinatorStatus {
+    RUNNING,
+
     FINISHED,
 
     CANCELED,
 
-    FAILED;
+    FAILED,
+
+    /** for savepoint job */
+    SUSPEND;
+
+    public boolean isEndState() {
+        return this == FINISHED || this == CANCELED || this == FAILED || this 
== SUSPEND;

Review Comment:
   ```suggestion
           return this != RUNNING;
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to