Hisoka-X commented on code in PR #2472:
URL:
https://github.com/apache/incubator-seatunnel/pull/2472#discussion_r959369947
##########
seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/SeaTunnelServer.java:
##########
@@ -75,8 +81,20 @@ public SeaTunnelServer(@NonNull Node node, @NonNull
SeaTunnelConfig seaTunnelCon
logger.info("SeaTunnel server start...");
}
- public TaskExecutionService getTaskExecutionService() {
- return this.taskExecutionService;
+ /**
+ * Lazy load for Slot Service
+ */
+ public SlotService getSlotService() {
+ if (slotService == null) {
+ synchronized (this) {
+ if (slotService == null) {
+ SlotService service = new DefaultSlotService(nodeEngine,
taskExecutionService, true, 2);
Review Comment:
Yes, will add it in the future.
--
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]