Fix vari
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good

This commit is contained in:
2025-01-09 19:56:07 +01:00
parent 6bf4eefe83
commit 7d7f288122
3 changed files with 5 additions and 6 deletions

View File

@@ -24,9 +24,10 @@ public class BasicConnectionPool {
public synchronized void init() throws Exception {
int poolSize =
UtilityDebug.isDebugExecution() ? 0 :
UtilityDebug.isIntegryServer() ? 1 :
UtilityDebug.isIntegryServerDev() ? 2 : Runtime.getRuntime().availableProcessors();
UtilityDebug.isIntegryServerMaster() ? 1 :
UtilityDebug.isIntegryServerDev() ? 2 :
UtilityDebug.isDebugExecution() ? 0 :
Runtime.getRuntime().availableProcessors();
poolSize = Math.min(poolSize, 8);

View File

@@ -7,7 +7,6 @@ public class UtilityDebug {
private static final String INTEGRY_DOMAIN = "STUDIO-ML";
public static boolean isDebugExecution() {
//Controllo il dominio del PC attuale
String domainName = System.getenv("USERDOMAIN");
return INTEGRY_DOMAIN.equalsIgnoreCase(domainName);

View File

@@ -66,9 +66,8 @@ public class ProductionOrderDataHandlerService {
}
String finalHistoryProfileDb = historyProfileDb;
Map<String, List<AvailableConnectionsModel>> databases = settingsModel.getAvailableConnections()
Map<String, List<AvailableConnectionsModel>> databases = settingsModel.getAvailableConnections(true)
.stream()
.filter(AvailableConnectionsModel::getInternalDb)
.filter(x -> finalHistoryProfileDb != null && !finalHistoryProfileDb.equalsIgnoreCase(x.getProfileName()))
.collect(Collectors.groupingBy(AvailableConnectionsModel::getDbName));