const resp = yield* httpClientWithoutBase.execute(req).pipe(
Effect.flatMap(HttpClientResponse.schemaBodyJson(AnalyzeOperation)),
Effect.repeat({
schedule: Schedule.spaced(interval),
until: (response) =>
response.status !== "notStarted" && response.status !== "running",
}),
);
const resp = yield* httpClientWithoutBase.execute(req).pipe(
Effect.flatMap(HttpClientResponse.schemaBodyJson(AnalyzeOperation)),
Effect.repeat({
schedule: Schedule.spaced(interval),
until: (response) =>
response.status !== "notStarted" && response.status !== "running",
}),
);