cloudflare / cloudflare/workerd

🐛 Bug Report — Workflow API - Setting delay as 0 causes workflow to fail

Open
#3,691 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
8.7k
Forks
739
Avg merge
2d 20h
Merged PRs (30d)
174

Description

Following code causes the step to fail

```
const createOrderStep = await step.do(
"create order",
{ retries: { limit: 1, delay: 0 } },
async () => {
});
```

The error I get in workflow page is following
```
e2.match is not a function
```

Also I couldn't find anywhere the default delay duration, is it documented somewhere?

Thanks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.