Agent 基础设施官方公告自动监测

Workflows, Workers - Delete Workflow instances individually or in batches

Cloudflare Workflows now allows deleting single or batches of up to 100 Workflow instances via the API or Wrangler CLI, immediately terminating executions and freeing state.

原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。

人类阅读

为什么值得关注

Cloudflare has introduced the ability to delete Workflow instances either individually or in batches of up to 100 via the Workflows API or Wrangler (version 4.125.0 and later). Deleting an instance frees its stored state and immediately halts any ongoing execution. If an active Workflow executes await instance.delete() on its own handle, execution terminates during that call, skipping any subsequent code. For bulk deletions, deleteBatch() returns objects with deleted and errors arrays, flagging nonexistent IDs as errors while counting duplicate IDs toward the 100-item limit. On the CLI, Wrangler accepts positional IDs, a JSON file containing a string array of IDs, or a latest flag, alongside --local flag support for wrangler dev sessions.

Agent 解析

可执行摘要

Cloudflare added instance deletion support for Workflows via API and Wrangler 4.125.0+. Users can invoke instance.delete() or env.WORKFLOW.deleteBatch() up to 100 IDs. Deleting an active instance immediately halts execution (including self-deletion) and frees state to reduce average daily peak storage billing.

Agent 实用度
80/100
可信度
90%
机器格式
JSON + Markdown
下一步

开发者应核对什么

  • Upgrade to Wrangler 4.125.0 or later to use CLI commands for Workflow instance deletion.
  • Implement instance.delete() or deleteBatch() to purge obsolete workflow instances and reduce average daily peak storage costs.
  • Ensure any code intended to run in a self-deleting workflow executes before calling await instance.delete() , as execution terminates during that call.
分类

标签与路由

cloudflareworkflowschangelog
相关信号

继续阅读