Angaben zum Datum
Datum aus der Quelle.
Erstmals gesehen am .
Developer Platform von Cloudflare
Workflow-Instanzmethoden in lokaler Entwicklung verfügbar
Die Workflow-Instanzmethoden pause(), resume(), restart() und terminate() stehen jetzt auch in der lokalen Entwicklung mit wrangler dev zur Verfügung.
Workflow 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