-
Notifications
You must be signed in to change notification settings - Fork 165
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
Conversation
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.
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
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.
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.
No. The host gracefully handles this situation. |
…native host mode.
…adata and capabilities based on hosting model.
a39453f
to
3bcd33b
Compare
return envReloadResponse; | ||
} | ||
|
||
private static WorkerMetadata GetWorkerMetadata() |
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.
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) |
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.
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.
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.