Skip to content

Commit 8e07661

Browse files
committed
fix: InstanceWithScheduler to allow Optional AllocationItem
1 parent 30a2a2e commit 8e07661

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/aleph/sdk/types.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,9 @@ class AllocationItem(BaseModel):
174174

175175
class InstanceWithScheduler(BaseModel):
176176
source: Literal["scheduler"]
177-
allocations: AllocationItem # Case Scheduler
177+
allocations: Optional[
178+
AllocationItem
179+
] # Case Scheduler (None == allocation can't be find on scheduler)
178180

179181

180182
class InstanceManual(BaseModel):

0 commit comments

Comments
 (0)