Workflows, Workers - Workflow instances now support pause(), resume(), restart(), and terminate() methods in local development
3mo ago
Source
CloudflareWorkflows, Workers - Workflow instances now support pause(), resume(), restart(), and terminate() methods in local developmentcloudflare.comWorkflow instance methods pause() , resume() , restart() , and terminate() are now available in local development when using wrangler dev . You can now test the full Workflow instance lifecycle locally: const instance = await env . MY_WORKFLOW . create ( { id : "my-instance-id" , } ) ; await instance . pause () ; // pauses a running workflow instance await instance . resume () ; // resumes a paused instance await instance . restart () ; // restarts the instance from the beginning await instance . terminate () ; // terminates the instance immediately

Comments
Sign in to join the conversation.
No comments yet. Be the first.