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

Including worker metadata & capabilities in env reload response #1425

Merged
merged 3 commits into from
Mar 29, 2023

Conversation

kshyju
Copy link
Member

@kshyju kshyju commented Mar 21, 2023

Worker side changes to address Azure/azure-functions-host#8983.

Including worker metadata and capabilities in env reload response.

Host side changes were made in Azure/azure-functions-host#9020

There is some changes in the native worker as well to make this work. But will keep that changes in separate PR.

Copy link
Member

@liliankasem liliankasem left a comment

Choose a reason for hiding this comment

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

Does the host change need to be released for this feature to go out? And if so, is the host version you need fully rolled out

Copy link
Member

@fabiocav fabiocav left a comment

Choose a reason for hiding this comment

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

Can we discuss the need for this changes? The request/response handling behavior should be the same and the gRPC worker ideally shouldn't be aware of the native host.

src/DotNetWorker.Grpc/AppContextUtils.cs Outdated Show resolved Hide resolved
src/DotNetWorker.Grpc/GrpcWorker.cs Outdated Show resolved Hide resolved
src/DotNetWorker.Grpc/GrpcWorker.cs Outdated Show resolved Hide resolved
@kshyju
Copy link
Member Author

kshyju commented Mar 22, 2023

Does the host change need to be released for this feature to go out? And if so, is the host version you need fully rolled out

No. The host gracefully handles this situation.

@liliankasem liliankasem self-requested a review March 22, 2023 18:08
@kshyju kshyju changed the title Including worker metadata & capabilities in env reload response when running with native placeholder Including worker metadata & capabilities in env reload response Mar 22, 2023
return envReloadResponse;
}

private static WorkerMetadata GetWorkerMetadata()
Copy link
Member Author

Choose a reason for hiding this comment

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

content of this method is existing code. Moved to this method so that it can be called from worker init handler and env reload response handler.

return workerMetadata;
}

private static IDictionary<string, string> GetWorkerCapabilities(WorkerOptions workerOptions)
Copy link
Member Author

Choose a reason for hiding this comment

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

content of this method is existing code. Moved to this method so that it can be called from worker init handler and env reload response handler.

@fabiocav fabiocav merged commit 926abc1 into main Mar 29, 2023
@fabiocav fabiocav deleted the shkr/env-reload-worker branch March 29, 2023 18:47
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.

None yet

4 participants