import { type TaskContext } from "@renderinc/sdk/workflows"; import { type RenderDeps } from "./client.js"; import type { ProvisionServiceInput, ServiceDTO } from "./types.js"; /** Result of the Phase-1 find-or-create/reconcile — the service plus the deploy to await. */ export interface EnsureServiceResult { service: ServiceDTO; /** Id of the deploy to observe (the create's initial deploy, or the latest on find). */ deployId: string | null; /** True when this call created the service (vs. found an existing one). */ created: boolean; } /** * Raw implementation of render.ensureService — **Phase 1** of provisioning: the * find-or-create-or-reconcile by-name that lists/creates/PATCHes `/services` * (the port reconciles a found service whose settings drifted). Split out so * `render.provisionService` can run it exactly *once* as a durable subtask: the * SDK replays a completed subtask from its checkpoint cache when the parent * re-dispatches, so the durable deploy re-poll (Phase 2) never re-lists * `/services`. Re-listing on every 15s poll is what sustained the production 429 * storm (ADR-0025). Idempotent by `name` (ADR-0018), so even a genuine re-run * finds the in-flight service rather than duplicating it. */ export declare function ensureServiceImpl(ctx: TaskContext, input: ProvisionServiceInput, deps?: RenderDeps): Promise; /** Find-or-create a Render service by name (the provisioning Phase-1 subtask). */ export declare const ensureService: import("@renderinc/sdk/workflows").TaskDefinition<[input: ProvisionServiceInput, deps?: RenderDeps | undefined], EnsureServiceResult>; //# sourceMappingURL=ensureService.d.ts.map