@@ -66,19 +66,48 @@ public partial interface IUpdateJobRequest
6666 /// </summary>
6767 [ DataMember ( Name = "results_retention_days" ) ]
6868 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 ; }
6980 }
7081
7182 /// <inheritdoc />
7283 public partial class UpdateJobRequest
7384 {
85+ /// <inheritdoc />
7486 public IAnalysisMemoryLimit AnalysisLimits { get ; set ; }
87+
88+ /// <inheritdoc />
7589 public Time BackgroundPersistInterval { get ; set ; }
90+
91+ /// <inheritdoc />
7692 public Dictionary < string , object > CustomSettings { get ; set ; }
93+
94+ /// <inheritdoc />
7795 public string Description { get ; set ; }
96+
97+ /// <inheritdoc />
7898 public IModelPlotConfigEnabled ModelPlotConfig { get ; set ; }
99+
100+ /// <inheritdoc />
79101 public long ? ModelSnapshotRetentionDays { get ; set ; }
102+
103+ /// <inheritdoc />
80104 public long ? RenormalizationWindowDays { get ; set ; }
105+
106+ /// <inheritdoc />
81107 public long ? ResultsRetentionDays { get ; set ; }
108+
109+ /// <inheritdoc />
110+ public bool ? AllowLazyOpen { get ; set ; }
82111 }
83112
84113 /// <inheritdoc />
@@ -93,6 +122,8 @@ public partial class UpdateJobDescriptor<TDocument> where TDocument : class
93122 long ? IUpdateJobRequest . RenormalizationWindowDays { get ; set ; }
94123 long ? IUpdateJobRequest . ResultsRetentionDays { get ; set ; }
95124
125+ bool ? IUpdateJobRequest . AllowLazyOpen { get ; set ; }
126+
96127 /// <inheritdoc />
97128 public UpdateJobDescriptor < TDocument > AnalysisLimits ( Func < AnalysisMemoryLimitDescriptor , IAnalysisMemoryLimit > selector ) =>
98129 Assign ( selector , ( a , v ) => a . AnalysisLimits = v ? . Invoke ( new AnalysisMemoryLimitDescriptor ( ) ) ) ;
@@ -123,5 +154,9 @@ public UpdateJobDescriptor<TDocument> RenormalizationWindowDays(long? renormaliz
123154
124155 /// <inheritdoc />
125156 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 ) ;
126161 }
127162}
0 commit comments