feat(cloud-scheduler): renew active leases
This commit is contained in:
@@ -13,6 +13,7 @@ if TYPE_CHECKING:
|
||||
AttemptStatus = Literal["assigned", "dispatched", "done", "failed", "expired"]
|
||||
TerminalTaskStatus = Literal["done", "failed"]
|
||||
ResultRecordStatus = Literal["recorded", "already_recorded", "conflict"]
|
||||
LeaseRenewalStatus = Literal["renewed", "not_found", "conflict", "expired"]
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
@@ -119,7 +120,7 @@ class CloudRepository(Protocol):
|
||||
host_id: str,
|
||||
lease_expires_at: datetime,
|
||||
now: datetime,
|
||||
) -> bool: ...
|
||||
) -> LeaseRenewalStatus: ...
|
||||
|
||||
def record_task_result(
|
||||
self,
|
||||
|
||||
Reference in New Issue
Block a user