From b4ccdfff3ae18936867cd7b102ac099b93e8d252 Mon Sep 17 00:00:00 2001 From: Pavel Silin Date: Fri, 20 Dec 2024 15:48:01 +0100 Subject: [PATCH] issue 3833 slightly change model for launch.run.sync.data system preference --- .../pipeline/run/RunSyncDataConfig.java | 3 ++- .../pipeline/run/RunSyncDataConfigEntry.java | 7 ++++++- .../entity/pipeline/run/RunSyncDataType.java | 21 +++++++++++++++++++ 3 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 core/src/main/java/com/epam/pipeline/entity/pipeline/run/RunSyncDataType.java diff --git a/core/src/main/java/com/epam/pipeline/entity/pipeline/run/RunSyncDataConfig.java b/core/src/main/java/com/epam/pipeline/entity/pipeline/run/RunSyncDataConfig.java index d60f3eff4b..b6b6a481d6 100644 --- a/core/src/main/java/com/epam/pipeline/entity/pipeline/run/RunSyncDataConfig.java +++ b/core/src/main/java/com/epam/pipeline/entity/pipeline/run/RunSyncDataConfig.java @@ -22,6 +22,7 @@ @Data public class RunSyncDataConfig { + // timeout in sec to be used for the sync_to_storage script private final Integer syncTimeout; - private final Map data; + private final Map data; } diff --git a/core/src/main/java/com/epam/pipeline/entity/pipeline/run/RunSyncDataConfigEntry.java b/core/src/main/java/com/epam/pipeline/entity/pipeline/run/RunSyncDataConfigEntry.java index 9f7c47bfd0..1bfedaec31 100644 --- a/core/src/main/java/com/epam/pipeline/entity/pipeline/run/RunSyncDataConfigEntry.java +++ b/core/src/main/java/com/epam/pipeline/entity/pipeline/run/RunSyncDataConfigEntry.java @@ -20,5 +20,10 @@ @Data public class RunSyncDataConfigEntry { - private final String storagePathPrefix; + // Storage path where folder for the particular run will be located. + // Each run folder will have its own name equal to run id. + private final String runFolderPathPrefix; + // Path where data for this config entry will be located. + // This path is relative to run folder. + private final String dataPathPrefix; } diff --git a/core/src/main/java/com/epam/pipeline/entity/pipeline/run/RunSyncDataType.java b/core/src/main/java/com/epam/pipeline/entity/pipeline/run/RunSyncDataType.java new file mode 100644 index 0000000000..597cef54df --- /dev/null +++ b/core/src/main/java/com/epam/pipeline/entity/pipeline/run/RunSyncDataType.java @@ -0,0 +1,21 @@ +/* + * Copyright 2024 EPAM Systems, Inc. (https://www.epam.com/) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.epam.pipeline.entity.pipeline.run; + +public enum RunSyncDataType { + NF_TRACE +}