Send WorkerStatusResponse when receiving WorkerStatusRequest. Send Capability "WorkerStatus" on Init
When host sends a "WorkerStatusRequest" , the worker needs to return "WorkerStatusResponse". The latency from request to response is used for scale decisions for out-of-proc languages.
Reference Java commit: https://github.com/Azure/azure-functions-java-worker/commit/fbf0e4b62a1ddcb778cf7604c425082bdb743cb5
cc: @pragnagopa @mathewc
@yojagad PowerShell worker already responds to WorkerStatusRequest with WorkerStatusResponse: https://github.com/Azure/azure-functions-powershell-worker/blob/8c2ff063ef583c56891e506e24ea598d58ec5bc3/src/RequestProcessor.cs#L124
Is there anything else we need to do?
@AnatoliB Great! Can you send the capability on init as well so that the runtime knows ?
@yojagad Got it, thank you.