temporalio / temporalio/samples-typescript
[Feature Request] Create error-handling sample
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 465
- Forks
- 148
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 11
Description
Is your feature request related to a problem? Please describe.
Users not knowing how to handle errors: https://temporalio.slack.com/archives/C01DKSMU94L/p1638225730301800
Describe the solution you'd like
Sample with activity failing and maximum attempts reached, catching and reporting the error (perhaps only reporting if isCancellation(e) is false), workflow failing, client catching and inspecting cause.
Additional context
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked TypeScript failure-handling documentation and the requested flow: a failing activity reaches maximum attempts, the workflow fails, and the client catches and inspects the cause. Done means a runnable sample demonstrates these cases and reports non-cancellation errors as described.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100