Hisoka-X commented on code in PR #3982:
URL:
https://github.com/apache/incubator-seatunnel/pull/3982#discussion_r1090146931
##########
seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/CoordinatorService.java:
##########
@@ -141,6 +148,8 @@ public CoordinatorService(@NonNull NodeEngineImpl
nodeEngine, @NonNull SeaTunnel
this.engineConfig = engineConfig;
masterActiveListener = Executors.newSingleThreadScheduledExecutor();
masterActiveListener.scheduleAtFixedRate(this::checkNewActiveMaster,
0, 100, TimeUnit.MILLISECONDS);
+ monitorJob = Executors.newSingleThreadScheduledExecutor();
Review Comment:
Hi, we already have `monitorService` in SeaTunnelServer.java, please use it
to printJobDetailInfo. Don't create new ScheduledExecutor. Judging that if it
is the master node, just print the corresponding information in
`printExecutionInfo`.
--
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]