Skip to content

Commit

Permalink
job and model rest schema update (#459)
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Davidyuk <igor.davidyuk@intel.com>
  • Loading branch information
igor-davidyuk authored Jul 4, 2024
1 parent 01832f5 commit 9cb0aac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions geti_sdk/data_models/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ class JobCancellationInfo:
:var cancel_time: Time at which the Job was cancelled
"""

cancellable: bool = True
is_cancelled: bool = False
user_uid: Optional[str] = None
cancel_time: Optional[str] = attr.field(converter=str_to_datetime, default=None)
Expand Down
5 changes: 4 additions & 1 deletion geti_sdk/data_models/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,11 @@ class Model(BaseModel):

architecture: str = attr.field(kw_only=True)
score_up_to_date: bool = attr.field(kw_only=True)
optimization_capabilities: OptimizationCapabilities = attr.field(kw_only=True)
optimized_models: List[OptimizedModel] = attr.field(kw_only=True)
# Removed in Geti 2.2
optimization_capabilities: Optional[OptimizationCapabilities] = attr.field(
default=None, kw_only=True
)
labels: Optional[List[Label]] = None
version: Optional[int] = attr.field(default=None, kw_only=True)
# 'version' is deprecated in v1.1 -- IS IT?
Expand Down

0 comments on commit 9cb0aac

Please sign in to comment.