azure-functions-powershell-worker icon indicating copy to clipboard operation
azure-functions-powershell-worker copied to clipboard

Send WorkerStatusResponse when receiving WorkerStatusRequest. Send Capability "WorkerStatus" on Init

Open yojagad opened this issue 5 years ago • 3 comments

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 avatar Apr 27 '20 20:04 yojagad

@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 avatar Apr 28 '20 22:04 AnatoliB

@AnatoliB Great! Can you send the capability on init as well so that the runtime knows ?

yojagad avatar Apr 29 '20 00:04 yojagad

@yojagad Got it, thank you.

AnatoliB avatar Apr 29 '20 06:04 AnatoliB