fix: keep HWPOD readiness polling read only
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user