@@ -66,19 +66,48 @@ public partial interface IUpdateJobRequest
66
66
/// </summary>
67
67
[ DataMember ( Name = "results_retention_days" ) ]
68
68
long ? ResultsRetentionDays { get ; set ; }
69
+
70
+ /// <summary>
71
+ /// Advanced configuration option. Whether this job should be allowed to open when there is insufficient machine learning
72
+ /// node capacity for it to be immediately assigned to a node. The default is false, which means that the
73
+ /// machine learning open job will return an error if a machine learning node with capacity to run the job cannot immediately be found.
74
+ /// (However, this is also subject to the cluster-wide xpack.ml.max_lazy_ml_nodes setting.)
75
+ /// If this option is set to true then the machine learning open job will not return an error, and the job will wait in the opening
76
+ /// state until sufficient machine learning node capacity is available.
77
+ /// </summary>
78
+ [ DataMember ( Name = "allow_lazy_open" ) ]
79
+ bool ? AllowLazyOpen { get ; set ; }
69
80
}
70
81
71
82
/// <inheritdoc />
72
83
public partial class UpdateJobRequest
73
84
{
85
+ /// <inheritdoc />
74
86
public IAnalysisMemoryLimit AnalysisLimits { get ; set ; }
87
+
88
+ /// <inheritdoc />
75
89
public Time BackgroundPersistInterval { get ; set ; }
90
+
91
+ /// <inheritdoc />
76
92
public Dictionary < string , object > CustomSettings { get ; set ; }
93
+
94
+ /// <inheritdoc />
77
95
public string Description { get ; set ; }
96
+
97
+ /// <inheritdoc />
78
98
public IModelPlotConfigEnabled ModelPlotConfig { get ; set ; }
99
+
100
+ /// <inheritdoc />
79
101
public long ? ModelSnapshotRetentionDays { get ; set ; }
102
+
103
+ /// <inheritdoc />
80
104
public long ? RenormalizationWindowDays { get ; set ; }
105
+
106
+ /// <inheritdoc />
81
107
public long ? ResultsRetentionDays { get ; set ; }
108
+
109
+ /// <inheritdoc />
110
+ public bool ? AllowLazyOpen { get ; set ; }
82
111
}
83
112
84
113
/// <inheritdoc />
@@ -93,6 +122,8 @@ public partial class UpdateJobDescriptor<TDocument> where TDocument : class
93
122
long ? IUpdateJobRequest . RenormalizationWindowDays { get ; set ; }
94
123
long ? IUpdateJobRequest . ResultsRetentionDays { get ; set ; }
95
124
125
+ bool ? IUpdateJobRequest . AllowLazyOpen { get ; set ; }
126
+
96
127
/// <inheritdoc />
97
128
public UpdateJobDescriptor < TDocument > AnalysisLimits ( Func < AnalysisMemoryLimitDescriptor , IAnalysisMemoryLimit > selector ) =>
98
129
Assign ( selector , ( a , v ) => a . AnalysisLimits = v ? . Invoke ( new AnalysisMemoryLimitDescriptor ( ) ) ) ;
@@ -123,5 +154,9 @@ public UpdateJobDescriptor<TDocument> RenormalizationWindowDays(long? renormaliz
123
154
124
155
/// <inheritdoc />
125
156
public UpdateJobDescriptor < TDocument > ResultsRetentionDays ( long ? resultsRetentionDays ) => Assign ( resultsRetentionDays , ( a , v ) => a . ResultsRetentionDays = v ) ;
157
+
158
+ /// <inheritdoc />
159
+ public UpdateJobDescriptor < TDocument > AllowLazyOpen ( bool ? allowLazyOpen = true ) =>
160
+ Assign ( allowLazyOpen , ( a , v ) => a . AllowLazyOpen = v ) ;
126
161
}
127
162
}
0 commit comments