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

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

Open yojagad opened this issue 4 years ago • 2 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

Hi @Yojagad,

Is this WorkerStatusRequest a recurring event? Or is it a one-off event? If possible please point me to the host code for this.

Thanks, Roger

Hazhzeng avatar Apr 28 '20 17:04 Hazhzeng

It is a recurring event. Also, need send capability "WorkerStatus" in order to take perf improvements being made in PR: https://github.com/Azure/azure-functions-host/pull/5897

pragnagopa avatar Apr 28 '20 17:04 pragnagopa