FlechazoW commented on code in PR #121:
URL: https://github.com/apache/seatunnel-web/pull/121#discussion_r1325465099


##########
seatunnel-server/seatunnel-app/src/main/java/org/apache/seatunnel/app/service/impl/JobExecutorServiceImpl.java:
##########
@@ -160,14 +159,13 @@ private SeaTunnelClient createSeaTunnelClient() {
     }
 
     public static String getClusterName(String testClassName) {
-        //        return System.getProperty("user.name") + "_" + testClassName;
         return testClassName;
     }
 
     @Override
-    public Result jobPause(Integer userId, Long jobInstanceId) {
+    public Result<Void> jobPause(Integer userId, Long jobInstanceId) {
         JobInstance jobInstance = jobInstanceDao.getJobInstance(jobInstanceId);
-        if (getJobStatusFromEngine(jobInstance, jobInstance.getJobEngineId()) 
== "RUNNING") {
+        if (Objects.equals(getJobStatusFromEngine(jobInstance, 
jobInstance.getJobEngineId()), "RUNNING")) {

Review Comment:
   I thought using StringUtils.equals makes the code complicated. 



-- 
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