feat(resources): cf-orch GPU VRAM orchestration — Plan A core #1

Merged
pyr0ball merged 21 commits from feature/cforch-core-orchestration into main 2026-03-31 10:43:53 -07:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit b774afb6b0 - Show all commits

View file

@ -13,7 +13,7 @@ class VRAMLease:
mb_granted: int
holder_service: str
priority: int
expires_at: float
expires_at: float # unix timestamp; 0.0 = no expiry
@classmethod
def create(

View file

@ -1,4 +1,5 @@
import time
import pytest
from circuitforge_core.resources.models import VRAMLease, GpuInfo, NodeInfo
@ -27,7 +28,6 @@ def test_vram_lease_create_no_ttl_has_zero_expiry():
def test_vram_lease_is_immutable():
lease = VRAMLease.create(gpu_id=0, node_id="heimdall", mb=1024,
service="snipe", priority=2)
import pytest
with pytest.raises((AttributeError, TypeError)):
lease.mb_granted = 999 # type: ignore