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

推荐订阅源

雷峰网
雷峰网
B
Blog
博客园_首页
云风的 BLOG
云风的 BLOG
S
SegmentFault 最新的问题
罗磊的独立博客
Jina AI
Jina AI
C
Check Point Blog
Martin Fowler
Martin Fowler
J
Java Code Geeks
博客园 - 司徒正美
美团技术团队
MongoDB | Blog
MongoDB | Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
大猫的无限游戏
大猫的无限游戏
有赞技术团队
有赞技术团队
U
Unit 42
Hugging Face - Blog
Hugging Face - Blog
WordPress大学
WordPress大学
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 叶小钗
博客园 - 三生石上(FineUI控件)
小众软件
小众软件

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