merge: keep HWPOD readiness polling read only

This commit is contained in:
root
2026-07-23 06:48:18 +02:00
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -19,6 +19,7 @@ test("HWPOD aggregate status reports API, worker, and Web together", async () =>
web: { service: "web", status: "stopped" },
},
});
expect(Object.values(result.services).every((service) => service.operation.endsWith(".status"))).toBe(true);
} finally {
await rm(cwd, { recursive: true, force: true });
}
+1 -1
View File
@@ -12,7 +12,7 @@ type ServiceName = "api" | "worker" | "web";
const SERVICE_NAMES: ServiceName[] = ["api", "worker", "web"];
export async function hwpodNativeServicesStatus(input: { cwd: string; env: Record<string, string | undefined> }) {
const results = await Promise.all(SERVICE_NAMES.map((service) => hwpodNativeServiceCommand({ service, action: "status", ...input })));
const results = await Promise.all(SERVICE_NAMES.map((service) => hwpodNativeServiceCommand({ ...input, service, action: "status" })));
const runningCount = results.filter((result) => result.ok).length;
return {
ok: runningCount === SERVICE_NAMES.length,