diff options
author | yurial <[email protected]> | 2025-04-02 19:22:58 +0300 |
---|---|---|
committer | yurial <[email protected]> | 2025-04-02 19:41:35 +0300 |
commit | e13c32ebb249441645b1fe62059650da53087c29 (patch) | |
tree | 6e3bd66ecf69838f165b48d83a2e2bd28e38cd35 | |
parent | 876966a6ef1e14c693442defbf9c3c52cc383242 (diff) |
Add 'Alias' to TOperationSpecBase
commit_hash:1414ded4e1a06aa5c10b8be0bb67d2bf3608f211
-rw-r--r-- | yt/cpp/mapreduce/client/operation.cpp | 3 | ||||
-rw-r--r-- | yt/cpp/mapreduce/interface/operation.h | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/yt/cpp/mapreduce/client/operation.cpp b/yt/cpp/mapreduce/client/operation.cpp index 9a1511025af..553b1a07776 100644 --- a/yt/cpp/mapreduce/client/operation.cpp +++ b/yt/cpp/mapreduce/client/operation.cpp @@ -854,6 +854,9 @@ void BuildCommonOperationPart( MergeNodes((*specNode)["annotations"], nirvanaContext.Annotations); } + if (baseSpec.Alias_) { + (*specNode)["alias"] = *baseSpec.Alias_; + } TString pool; if (baseSpec.Pool_) { pool = *baseSpec.Pool_; diff --git a/yt/cpp/mapreduce/interface/operation.h b/yt/cpp/mapreduce/interface/operation.h index 869c8f9c0bb..50c694b5b06 100644 --- a/yt/cpp/mapreduce/interface/operation.h +++ b/yt/cpp/mapreduce/interface/operation.h @@ -523,6 +523,9 @@ struct TOperationSpecBase /// If operation doesn't finish in time it will be aborted. FLUENT_FIELD_OPTION(TDuration, TimeLimit); + /// @brief Alias for searching for an operation in the future. + FLUENT_FIELD_OPTION(TString, Alias); + /// @brief Title to be shown in web interface. FLUENT_FIELD_OPTION(TString, Title); |