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

推荐订阅源

freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
H
Help Net Security
云风的 BLOG
云风的 BLOG
Apple Machine Learning Research
Apple Machine Learning Research
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
D
Docker
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Blog — PlanetScale
Blog — PlanetScale
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
GbyAI
GbyAI
博客园 - Franky
B
Blog RSS Feed
Stack Overflow Blog
Stack Overflow Blog
L
LangChain Blog
量子位
V
Visual Studio Blog
Y
Y Combinator Blog
小众软件
小众软件
N
Netflix TechBlog - Medium
博客园 - 三生石上(FineUI控件)
Microsoft Security Blog
Microsoft Security 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
WorkflowNotRegisteredError
2026-05-31 · via Workflow SDK Documentation

Thrown when a workflow function is not registered in the current deployment.

WorkflowNotRegisteredError is thrown when the runtime tries to execute a workflow function that is not registered in the current deployment. This is an infrastructure error — not a user code error. It typically means a run was started against a deployment that does not have this workflow (e.g., the workflow was renamed or moved), or there was a build/bundling issue.

When this error occurs, the run fails with a RUNTIME_ERROR error code.

import { WorkflowNotRegisteredError } from "workflow/errors"
declare const error: unknown; // @setup

if (WorkflowNotRegisteredError.is(error)) { 
  console.error("Workflow not registered:", error.workflowName);
}

Properties

NameTypeDescription
workflowNamestringThe name of the workflow function that was not found.
messagestringThe error message.

Static Methods

WorkflowNotRegisteredError.is(value)

Type-safe check for WorkflowNotRegisteredError instances. Preferred over instanceof because it works across module boundaries and VM contexts.

The .is() method works in server-side Node.js code (API routes, middleware). When checking the error from run.returnValue, use WorkflowRunFailedError.is() and inspect error.cause — the underlying error is deserialized from the event log.

import { WorkflowNotRegisteredError } from "workflow/errors"
declare const error: unknown; // @setup

if (WorkflowNotRegisteredError.is(error)) {
  // error is typed as WorkflowNotRegisteredError
}