Migliorie gestione exchange
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
This commit is contained in:
@@ -91,6 +91,9 @@ public class ExchangeSystemManagerService {
|
|||||||
private void executeExchange(StbExchangeConfig stbExchangeConfig) {
|
private void executeExchange(StbExchangeConfig stbExchangeConfig) {
|
||||||
logger.info("Avvio EXCHANGE [" + stbExchangeConfig.getDescription() + "]");
|
logger.info("Avvio EXCHANGE [" + stbExchangeConfig.getDescription() + "]");
|
||||||
|
|
||||||
|
stbExchangeConfig = (StbExchangeConfig) stbExchangeConfig.clone();
|
||||||
|
stbExchangeConfig.setSchedulationCron(null); //Blanco il campo schedulazione per evitare che venga salvato nel DB
|
||||||
|
|
||||||
StbExchangeConfigDetail executingStbExchangeConfigDetail = null;
|
StbExchangeConfigDetail executingStbExchangeConfigDetail = null;
|
||||||
|
|
||||||
try (MultiDBTransactionManager internalDb = new MultiDBTransactionManager(stbExchangeConfig.getInternalProfileDb())) {
|
try (MultiDBTransactionManager internalDb = new MultiDBTransactionManager(stbExchangeConfig.getInternalProfileDb())) {
|
||||||
@@ -215,6 +218,7 @@ public class ExchangeSystemManagerService {
|
|||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("Errore", e);
|
logger.error("Errore", e);
|
||||||
|
|
||||||
saveErrorLog(internalDb, stbExchangeConfig, executingStbExchangeConfigDetail, e);
|
saveErrorLog(internalDb, stbExchangeConfig, executingStbExchangeConfigDetail, e);
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
Reference in New Issue
Block a user