Skip to content

workflows: terminate(), pause(), resume(), and restart() workflow methods not supported in local development #823

@threepointone

Description

@threepointone

Summary

The workflow instance control methods (terminate(), pause(), resume(), restart()) throw "Not implemented yet" errors when running in local development with wrangler dev. These methods work correctly when deployed to Cloudflare.

Affected Methods

  • terminateWorkflow(workflowId)
  • pauseWorkflow(workflowId)
  • resumeWorkflow(workflowId)
  • restartWorkflow(workflowId)

Current Behavior

When calling any of these methods locally, the underlying Cloudflare Workflow API throws: Error: Not implemented yet

The agents SDK wraps this with a friendlier error message, but the functionality is not available until deployed.

Expected Behavior

These methods should work in local development for a complete local testing experience.

Workaround

Deploy to Cloudflare to use these features. The agents SDK provides clear error messages indicating this limitation.

Related

This is a limitation of the local Workflows runtime in wrangler dev / miniflare, not the agents SDK itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions