Skip to content
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

Add polling sample for infrequent poll with Retry-After delay - showc… #649

Merged
merged 2 commits into from
Jul 17, 2024

Conversation

tsurdilo
Copy link
Contributor

this adds a polling sample that shows use of ApplicationFailure.newFailureWithCauseAndDelay
and how it can be used when downstream service activity invokes sends back Retry-After header in response
that defines next retry of polling activity

…ases ApplicationFailure.newFailureWithCauseAndDelay

Signed-off-by: Tihomir Surdilovic <[email protected]>
@tsurdilo tsurdilo requested review from antmendoza and a team as code owners July 15, 2024 02:14
Signed-off-by: Tihomir Surdilovic <[email protected]>
Copy link
Member

@cretz cretz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. I wonder if we want to do this in every other sample repo.

@tsurdilo
Copy link
Contributor Author

@cretz hi, thanks for review, yes will work on it.

@tsurdilo tsurdilo merged commit 043e1c8 into main Jul 17, 2024
5 checks passed
@tsurdilo tsurdilo deleted the failurecauseanddelaysample branch July 17, 2024 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants