temporalio / samples-typescript

Other
317 stars 123 forks source link

[Feature Request] Create error-handling sample #74

Open lorensr opened 2 years ago

lorensr commented 2 years ago

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

swyxio commented 2 years ago

suggest making this a more prominent part of our existing samples to nudge people to do it more proactively rather than treat it as optional