File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
src/dstack/_internal/core/models Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1616 ProfileParams ,
1717 ProfileRetry ,
1818 SpotPolicy ,
19+ TerminationPolicy ,
1920 parse_idle_duration ,
2021)
2122from dstack ._internal .core .models .resources import Range , ResourcesSpec
@@ -223,9 +224,15 @@ class InstanceGroupParams(CoreModel):
223224 ),
224225 ] = None
225226
227+ # Deprecated and unused. Left for compatibility with 0.18 clients.
228+ termination_policy : Annotated [Optional [TerminationPolicy ], Field (exclude = True )] = None
229+ termination_idle_time : Annotated [Optional [Union [str , int ]], Field (exclude = True )] = None
230+
226231 class Config :
227232 @staticmethod
228233 def schema_extra (schema : Dict [str , Any ], model : Type ):
234+ del schema ["properties" ]["termination_policy" ]
235+ del schema ["properties" ]["termination_idle_time" ]
229236 add_extra_schema_types (
230237 schema ["properties" ]["nodes" ],
231238 extra_types = [{"type" : "integer" }, {"type" : "string" }],
Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ class ProfileParams(CoreModel):
241241 Field (description = "Run termination policy based on utilization" ),
242242 ] = None
243243
244- # # Deprecated and unused. Left for compatibility with 0.18 clients.
244+ # Deprecated and unused. Left for compatibility with 0.18 clients.
245245 pool_name : Annotated [Optional [str ], Field (exclude = True )] = None
246246 instance_name : Annotated [Optional [str ], Field (exclude = True )] = None
247247 retry_policy : Annotated [Optional [ProfileRetryPolicy ], Field (exclude = True )] = None
You can’t perform that action at this time.
0 commit comments