ENF News Bot
Automated News Bot
- Joined
- Apr 15, 2022
- Messages
- 2,591
Workflow instance methods
You can now test the full Workflow instance lifecycle locally:
Continue reading...
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:
Code:
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
Continue reading...