diff options
author | Alexander Smirnov <alex@ydb.tech> | 2025-02-13 18:38:05 +0000 |
---|---|---|
committer | Alexander Smirnov <alex@ydb.tech> | 2025-02-13 18:38:05 +0000 |
commit | 28180f60aec6dcb2b662b6417c90226553ebe2dc (patch) | |
tree | 9ca4d2b0ea989b075f60d2746159e891c1aa77f7 /yt/cpp | |
parent | 09744cf9fbdd1cd31f648b5fabc8a9ed09875e3b (diff) | |
parent | 36161988ade9e56ec69a44ba4ff084ede6e44ee7 (diff) | |
download | ydb-28180f60aec6dcb2b662b6417c90226553ebe2dc.tar.gz |
Merge pull request #14512 from ydb-platform/merge-libs-250213-0050
Diffstat (limited to 'yt/cpp')
-rw-r--r-- | yt/cpp/mapreduce/client/operation.cpp | 6 | ||||
-rw-r--r-- | yt/cpp/mapreduce/interface/operation.h | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/yt/cpp/mapreduce/client/operation.cpp b/yt/cpp/mapreduce/client/operation.cpp index c8cbe5b644..76a55b436f 100644 --- a/yt/cpp/mapreduce/client/operation.cpp +++ b/yt/cpp/mapreduce/client/operation.cpp @@ -879,6 +879,12 @@ void BuildCommonOperationPart( if (baseSpec.MaxFailedJobCount_.Defined()) { (*specNode)["max_failed_job_count"] = *baseSpec.MaxFailedJobCount_; } + if (baseSpec.Description_.Defined()) { + (*specNode)["description"] = *baseSpec.Description_; + } + if (baseSpec.Annotations_.Defined()) { + (*specNode)["annotations"] = *baseSpec.Annotations_; + } } template <typename TSpec> diff --git a/yt/cpp/mapreduce/interface/operation.h b/yt/cpp/mapreduce/interface/operation.h index 218ead0572..c1beb5375d 100644 --- a/yt/cpp/mapreduce/interface/operation.h +++ b/yt/cpp/mapreduce/interface/operation.h @@ -542,6 +542,12 @@ struct TOperationSpecBase /// How many jobs can fail before operation is failed. FLUENT_FIELD_OPTION(ui64, MaxFailedJobCount); + + // Arbitrary structured information related to the operation. + FLUENT_FIELD_OPTION(TNode, Annotations); + + // Similar to Annotations, shown on the operation page. Recommends concise, human-readable entries to prevent clutter. + FLUENT_FIELD_OPTION(TNode, Description); }; /// |