ยฉ 2026 Hedgehog Software, LLC
const wf = await MY_WORKFLOW.get(id)
await wf.status()
export class MyWorkflow extends WorkflowEntrypoint<Env, Params> { async run(event: WorkflowEvent<Params>, step: WorkflowStep) { step.do('Step 1', async () => { return 'Step 1 finished!'; }); step.do('Step 2', { retries: { limit: 2, delay: '1 second', backoff: 'linear', }, }, async () => { console.log('Trying Step 2'); throw new NonRetryableError('Step 3 failed. Non-retryable'); }); } }