github cloudflare/workers-sdk @cloudflare/workflows-shared@0.7.0

Minor Changes

  • #12881 8729f3d Thanks @pombosilva! - Workflow instances now support pause, resume, restart, and terminate in local dev.

    const instance = await env.MY_WORKFLOW.create({
      id: "my-instance",
    });
    
    await instance.pause(); // pauses after the current step completes
    await instance.resume(); // resumes from where it left off
    await instance.restart(); // restarts the workflow from the beginning
    await instance.terminate(); // terminates the workflow immediately

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.