temporalio / temporalio/samples-typescript

[Feature Request] Create error-handling sample

Open
#74 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

https://docs.temporal.io/docs/typescript/handling-failure

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.