Remove run node UI and expire registrations
This commit is contained in:
@@ -56,7 +56,7 @@ export type RuntimeObservationFreshness = "fresh" | "unverified";
|
||||
export function runtimeObservationFreshness(instance: ServerInstanceResponse, endpoint: RunEndpointResponse | undefined, now = Date.now()): RuntimeObservationFreshness {
|
||||
if (!endpoint || endpoint.status !== "online") return "unverified";
|
||||
const heartbeat = Date.parse(endpoint.lastHeartbeatAt);
|
||||
return Number.isFinite(heartbeat) && now-heartbeat <= 45_000 ? "fresh" : "unverified";
|
||||
return Number.isFinite(heartbeat) && now-heartbeat <= 30_000 ? "fresh" : "unverified";
|
||||
}
|
||||
|
||||
export const emptyServerCreateForm: ServerCreateFormState = {
|
||||
|
||||
Reference in New Issue
Block a user