Skip to content

Adding retry context properties to InvocationRequest #7134

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

Merged
merged 1 commit into from
Feb 22, 2021
Merged

Conversation

alrod
Copy link
Member

@alrod alrod commented Feb 5, 2021

Issue describing the changes in this PR

resolves #7048

Pull request checklist

  • My changes do not require documentation changes
    • Otherwise: Documentation issue linked to PR
  • My changes should not be added to the release notes for the next release
    • Otherwise: I've added my notes to release_notes.md
  • My changes do not need to be backported to a previous version
    • Otherwise: Backport tracked by issue/PR #issue_or_pr
  • I have added all required tests (Unit tests, E2E tests)

Additional information

proto: Azure/azure-functions-language-worker-protobuf#53
nodejs worker: Azure/azure-functions-nodejs-worker#362

@alrod alrod requested a review from pragnagopa February 5, 2021 21:42
@pragnagopa pragnagopa requested a review from mhoeger February 12, 2021 16:18
@@ -26,6 +28,25 @@ public static async Task<InvocationRequest> ToRpcInvocationRequest(this ScriptIn
TraceContext = GetRpcTraceContext(context.Traceparent, context.Tracestate, context.Attributes, logger),
};

if (context.ExecutionContext.RetryContext != null)
Copy link
Member

Choose a reason for hiding this comment

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

Move this to static method to make it easier to add unit test

Copy link
Member

@pragnagopa pragnagopa left a comment

Choose a reason for hiding this comment

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

Added small comment.
FYI @brettsam @ankitkumarr for dotnet worker

@alrod alrod requested a review from pragnagopa February 13, 2021 00:27
pragnagopa
pragnagopa previously approved these changes Feb 13, 2021
@alrod alrod merged commit 80d8e45 into dev Feb 22, 2021
@alrod alrod deleted the alrod/rpcretry branch February 22, 2021 18:40
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.

Updating RPC layer to include RetryContext
2 participants