You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@datalab.apache.org by GitBox <gi...@apache.org> on 2020/11/24 13:12:31 UTC

[GitHub] [incubator-datalab] KinashYurii opened a new pull request #989: [DATALAB-2152] -- added cluster instances to scheduler status sync

KinashYurii opened a new pull request #989:
URL: https://github.com/apache/incubator-datalab/pull/989


   Added list of clusters instances to process status sync


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@datalab.apache.org
For additional commands, e-mail: dev-help@datalab.apache.org


[GitHub] [incubator-datalab] ofuks merged pull request #989: [DATALAB-2152] -- added cluster instances to scheduler status sync

Posted by GitBox <gi...@apache.org>.
ofuks merged pull request #989:
URL: https://github.com/apache/incubator-datalab/pull/989


   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@datalab.apache.org
For additional commands, e-mail: dev-help@datalab.apache.org


[GitHub] [incubator-datalab] ofuks commented on a change in pull request #989: [DATALAB-2152] -- added cluster instances to scheduler status sync

Posted by GitBox <gi...@apache.org>.
ofuks commented on a change in pull request #989:
URL: https://github.com/apache/incubator-datalab/pull/989#discussion_r529564204



##########
File path: services/self-service/src/main/java/com/epam/datalab/backendapi/schedulers/CheckInfrastructureStatusScheduler.java
##########
@@ -83,11 +83,20 @@ public void execute(JobExecutionContext context) {
 				.stream()
 				.collect(Collectors.toMap(UserInstanceDTO::getEndpoint, this::getExploratoryAndSparkInstances));
 
+		Map<String, List<EnvResource>> clusterInstances = userInstanceDTOS
+				.stream()
+				.collect(Collectors.toMap(UserInstanceDTO::getEndpoint, this::getCloudInstances));
+
 		activeEndpoints.forEach(e -> {
 					List<EnvResource> hostInstances = Stream.of(getEdgeInstances(e), exploratoryAndSparkInstances.get(e))
 							.flatMap(Collection::stream)
 							.collect(Collectors.toList());
-					infrastructureInfoService.updateInfrastructureStatuses(serviceUser, e, hostInstances, Collections.emptyList());
+
+			List<EnvResource> cloudInstances = Stream.of(getEdgeInstances(e), clusterInstances.get(e))

Review comment:
       Do we need **getEdgeInstances(e)** here?




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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@datalab.apache.org
For additional commands, e-mail: dev-help@datalab.apache.org