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

Populate WorkerMetadata in WorkerInitResponse message

Open liliankasem opened this issue 3 years ago • 3 comments

The protobuf has been updated to include a WorkerMetadata property within the WorkerInitResponse message. The worker should include WorkerMetadata when sending the WorkerInitResponse to the host.

PR for reference on how to fill in the fields.

You will need to pull in the latest protobuf version first (this doc may help).

message WorkerMetadata {
  // The runtime/stack name
  string runtime_name = 1;

  // The version of the runtime/stack
  string runtime_version = 2;

  // The version of the worker or worker SDK
  string worker_version = 3;

  // The worker bitness/architecture
  string worker_bitness = 4;

  // Optional additional custom properties
  map<string, string> custom_properties = 5;
}

liliankasem avatar Jun 09 '22 19:06 liliankasem

Latest proto version is now v1.5.8

Edit: I had to force push so please confirm the commit hash is 14b2ba5 when you pull the protobuf into your repo

liliankasem avatar Jun 15 '22 22:06 liliankasem

@vrdmr can we prioritize this for the next sprint?

liliankasem avatar Oct 04 '22 21:10 liliankasem

Documentation to help with implementation: https://dev.azure.com/msazure/One/_git/AAPT-Antares-Docs?path=/TeamDocs/FunctionTeamDocs/Design/OOPWorkers/WorkerMetadata.md&version=GBmaster&_a=preview

liliankasem avatar Oct 04 '22 21:10 liliankasem