-
Notifications
You must be signed in to change notification settings - Fork 282
Non retryable errors for activities course port #4046
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📖 Docs PR preview links
|
| In most cases, we recommend using the Workflow Execution Timeout for [Workflows](/workflows) or the Schedule-To-Close Timeout for Activities to limit the total duration of retries, rather than using this attribute. | ||
|
|
||
| ### Non-Retryable Errors | ||
| ### Non-Retryable Errors {#non-retryable-errors} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just something I've been wondering about. Why do we do the {#....} on some of the headings?
|
|
||
| To raise a non-retryable error, specify the `non_retryable` flag when raising an `ApplicationError`: | ||
|
|
||
| ```python |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
|
||
| To throw a non-retryable error, use the `newNonRetryableFailure` method: | ||
|
|
||
| ```java |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| throw new ApplicationFailureException( | ||
| $"Something bad happened on attempt {attempt}", | ||
| errorType: "my_failure_type", | ||
| nonRetryable: true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| nonRetryable: true); | |
| nonRetryable: true | |
| ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| --- | ||
|
|
||
| import { CaptionedImage, RelatedReadContainer, RelatedReadItem } from '@site/src/components'; | ||
| import Tabs from '@theme/Tabs'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a question, but why are we using the <Tabs> instead of the <SdkTabs>?
Co-authored-by: Milecia McG <47196133+flippedcoder@users.noreply.github.com>



What does this PR do?
port from errors course for all languages given. added to retry policy page.
code samples language ports:
Notes to reviewers