-
Notifications
You must be signed in to change notification settings - Fork 441
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
Worker Indexing Changes #7606
Worker Indexing Changes #7606
Conversation
…ables/worker config variables to test cases. Add null checks to _workerRuntime and workerConfig code sections.
…integration tests
… logic in FunctionMetadataProviderFactory
…sage names Fixed invocation troubles for worker indexed functions --> was just missing a few lines from ScriptHost
…ots of tests Replaced dispatcher.InitializeAsync(null) with new List<FunctionMetadata> as the parameter instead of null Renamed FunctionMetadataProviderTests as HostFunctionMetadataProviderTests
… provider factory, updated the tests
…tEnv Added new RawFunctionMetadata type Moved Binding parsing logic into WorkerFunctionMetadataProvider
…nd ValidateMetadata() validation logic Added simple HttpFunctionInvocationDispatcher implementation for worker indexing functions Cleaned ScriptHost worker indexing logic and WorkerFunctionMetadataProvider logic
Add detailed binding validation logic to WorkerFunctionMetadataProvider Add detailed comments to HTTP dispatcher
Throw NotSupportedException in HttpFunctionInvocationDispatcher for worker indexing-related functions
* Moving ValidateBinding to Utility * Moving ValidateFunction to utility and modifying tests to remove dupliation * Fixing PR comments * Removing proxy from message
…om/Azure/azure-functions-host into t-anjanan/workingSteinChanges-fork
@vrdmr we're getting close to merging this, but I wanted to see if you have any additional feedback you want to provide. |
src/WebJobs.Script.Grpc/azure-functions-language-worker-protobuf/src/proto/FunctionRpc.proto
Show resolved
Hide resolved
var workerConfigs = _languageWorkerOptions.Value.WorkerConfigs; | ||
|
||
IFunctionMetadataProvider metadataProvider = Utility.CanWorkerIndex(workerConfigs, _environment) | ||
? new WorkerFunctionMetadataProvider(_loggerFactory.CreateLogger<WorkerFunctionMetadataProvider>(), dispatcher) |
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.
We can add something like IFunctionMetadataProviderFactory
which will create appropriate IFunctionMetadataProvider
depending on the config. IFunctionMetadataProviderFactory
is added to FunctionMetadataManager
using DI.
To get a dispatcher use FunctionInvocationDispatcherFactory
src/WebJobs.Script.Grpc/azure-functions-language-worker-protobuf/src/proto/FunctionRpc.proto
Show resolved
Hide resolved
src/WebJobs.Script/Workers/Rpc/FunctionRegistration/RpcFunctionInvocationDispatcher.cs
Outdated
Show resolved
Hide resolved
...bJobs.Script.Tests.Integration/ApplicationInsights/ApplicationInsightsCSharpEndToEndTests.cs
Show resolved
Hide resolved
Can you please rebase on latest dev |
yes, last done on 11/8. Doing this regularly. |
Issue describing the changes in this PR
#7496
Wiki
https://github.com/Azure/azure-functions-host/wiki/Worker-Indexing-Changes
Design doc - Here
Pull request checklist
release_notes.md
Additional information
Additional PR information