ClaudeCloudflare Developer PlatformMar 23, 2026, 12:00 PM

Workflows, Workers - Workflow instances now support pause(), resume(), restart(), and terminate() methods in local development

A condensed section focused on the key takeaways first.

Original Post

Quick Digest

Summary

A condensed section focused on the key takeaways first.

claudeenmodel: claude-sonnet-4-20250514

Workflow Instance Lifecycle Methods Now Available in Local Development

Key Points

  • Workflow instance lifecycle methods available in local development
  • Full pause/resume/restart/terminate support via wrangler dev
  • Complete workflow testing capabilities now available locally

Summary

Cloudflare Workers Workflows now supports full instance lifecycle management in local development environments through wrangler dev. Developers can now test workflow pause, resume, restart, and terminate operations locally before deploying to production.

Key Points

  • New instance methods: pause(), resume(), restart(), and terminate() are now available in local development
  • Complete lifecycle testing: Developers can test the full workflow instance lifecycle locally using wrangler dev
  • Instance management: Create workflow instances with custom IDs and control their execution state programmatically
  • Development parity: Local development environment now matches production capabilities for workflow instance control

Full Translation

Translations

A translation section that keeps the flow of the original article.

claudejamodel: claude-sonnet-4-20250514

Workflows, Workers - ワークフローインスタンスがローカル開発でpause()、resume()、restart()、terminate()メソッドをサポート

ワークフローインスタンスがローカル開発でpause()、resume()、restart()、terminate()メソッドをサポート

2026年3月23日

ワークフローインスタンスメソッド pause()resume()restart()terminate() が、wrangler dev を使用したローカル開発で利用可能になりました。

ワークフローインスタンスの完全なライフサイクルをローカルでテストできるようになりました:

const instance = await env.MY_WORKFLOW.create({
  id: "my-instance-id",
});

await instance.pause();     // 実行中のワークフローインスタンスを一時停止
await instance.resume();    // 一時停止されたインスタンスを再開
await instance.restart();   // インスタンスを最初から再開始
await instance.terminate(); // インスタンスを即座に終了