惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Engineering at Meta
Engineering at Meta
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
小众软件
小众软件
博客园_首页
T
Tailwind CSS Blog
美团技术团队
博客园 - 叶小钗
Microsoft Security Blog
Microsoft Security Blog
有赞技术团队
有赞技术团队
Apple Machine Learning Research
Apple Machine Learning Research
大猫的无限游戏
大猫的无限游戏
Microsoft Azure Blog
Microsoft Azure Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
I
InfoQ
MongoDB | Blog
MongoDB | Blog
The Cloudflare Blog
J
Java Code Geeks
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 聂微东
酷 壳 – CoolShell
酷 壳 – CoolShell
Blog — PlanetScale
Blog — PlanetScale
IT之家
IT之家
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Y
Y Combinator Blog

Workflow SDK Documentation

Patterns for Defining Tools Human-in-the-Loop Building Durable AI Agents Queueing User Messages Resumable Streams Sleep, Suspense, and Scheduling Streaming Updates from Tools API Reference Workflow Globals Changelog Resilient run start Cookbook Building a World Deploying Astro Express Fastify Hono Getting Started NestJS Next.js Nitro Nuxt Python SvelteKit Vite corrupted-event-log fetch-in-workflow hook-conflict Errors
healthCheck
2026-06-12 · via Workflow SDK Documentation

Verify a deployment's workflow infrastructure by sending a message through the queue pipeline.

Performs an end-to-end health check of a deployment's workflow infrastructure by sending a message through the queue pipeline and verifying it is processed by the workflow endpoint. Because it goes through the queue rather than direct HTTP, it works even when the deployment is behind Deployment Protection on Vercel.

import { getWorld, healthCheck } from "workflow/runtime";

const world = await getWorld();
const result = await healthCheck(world, "workflow"); 

if (!result.healthy) {
  console.error("Workflow infrastructure unhealthy:", result.error);
}

Parameters

ParameterTypeDescription
worldWorldThe World instance to send the health check through
endpoint"workflow" | "step"Which endpoint to check
optionsHealthCheckOptions & { namespace?: string }Optional configuration

Where HealthCheckOptions is:

OptionTypeDescription
timeoutnumberMilliseconds to wait for the health check response. Default: 30000.
deploymentIdstringDeployment to target. Falls back to process.env.VERCEL_DEPLOYMENT_ID.

Returns

Returns a Promise<HealthCheckResult>:

PropertyTypeDescription
healthybooleanWhether the endpoint processed the health check message
errorstring | undefinedError message when the check failed
latencyMsnumber | undefinedRound-trip latency when the check succeeded
specVersionnumber | undefinedWorkflow spec version of the responding deployment
workflowCoreVersionstring | undefined@workflow/core version of the responding deployment