Documentation Index
Fetch the complete documentation index at: https://smithers.sh/llms.txt
Use this file to discover all available pages before exploring further.
// Props
import { Poller } from "smithers-orchestrator";
type PollerProps = {
id?: string; // default "poll"
check: AgentLike | (() => Promise<unknown> | unknown);
checkOutput: OutputTarget; // must include `satisfied: boolean`
maxAttempts?: number; // default 30
backoff?: "fixed" | "linear" | "exponential"; // default "fixed"
intervalMs?: number; // default 5000
onTimeout?: "fail" | "return-last"; // default "fail"
skipIf?: boolean;
children?: ReactNode; // condition description
};
<Workflow name="wait-for-deploy">
<Poller
check={statusChecker}
checkOutput={outputs.check}
maxAttempts={20}
intervalMs={10_000}
backoff="exponential"
onTimeout="fail"
>
Check whether the deployment to production has completed successfully.
</Poller>
</Workflow>
Notes
satisfied drives the loop’s until.
- Backoff: fixed =
intervalMs; linear = intervalMs * (N+1); exponential = intervalMs * 2^N.