aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--yt/cpp/mapreduce/client/operation.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/yt/cpp/mapreduce/client/operation.cpp b/yt/cpp/mapreduce/client/operation.cpp
index 3070427f98..1b84601d3f 100644
--- a/yt/cpp/mapreduce/client/operation.cpp
+++ b/yt/cpp/mapreduce/client/operation.cpp
@@ -878,14 +878,14 @@ void BuildCommonOperationPart(
if (baseSpec.Title_.Defined()) {
(*specNode)["title"] = *baseSpec.Title_;
}
+ if (baseSpec.MaxFailedJobCount_.Defined()) {
+ (*specNode)["max_failed_job_count"] = *baseSpec.MaxFailedJobCount_;
+ }
}
template <typename TSpec>
void BuildCommonUserOperationPart(const TSpec& baseSpec, TNode* spec)
{
- if (baseSpec.MaxFailedJobCount_.Defined()) {
- (*spec)["max_failed_job_count"] = *baseSpec.MaxFailedJobCount_;
- }
if (baseSpec.FailOnJobRestart_.Defined()) {
(*spec)["fail_on_job_restart"] = *baseSpec.FailOnJobRestart_;
}