aboutsummaryrefslogtreecommitdiffstats
path: root/yt/cpp
diff options
context:
space:
mode:
authorAlexander Smirnov <alex@ydb.tech>2025-02-13 18:38:05 +0000
committerAlexander Smirnov <alex@ydb.tech>2025-02-13 18:38:05 +0000
commit28180f60aec6dcb2b662b6417c90226553ebe2dc (patch)
tree9ca4d2b0ea989b075f60d2746159e891c1aa77f7 /yt/cpp
parent09744cf9fbdd1cd31f648b5fabc8a9ed09875e3b (diff)
parent36161988ade9e56ec69a44ba4ff084ede6e44ee7 (diff)
downloadydb-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.cpp6
-rw-r--r--yt/cpp/mapreduce/interface/operation.h6
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);
};
///