From cdec4be44a27d46d03cac668a063ba61956b204f Mon Sep 17 00:00:00 2001 From: Hal Spang Date: Wed, 7 Jan 2026 12:21:54 -0800 Subject: [PATCH 1/2] Add SupportedActions field to GetWorkItemsRequest This field will be used by workers to advertise to the backend what work items it can process. This includes orchestrations, activities, and entities. Currently, orchestrations and activities both take an array for what versions they support despite the fact that multiple versions can't be specified from the workers side. This is also left as an open object so additional support fields can be specified in the future. Signed-off-by: Hal Spang --- protos/orchestrator_service.proto | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/protos/orchestrator_service.proto b/protos/orchestrator_service.proto index 73eaebb..b1553ce 100644 --- a/protos/orchestrator_service.proto +++ b/protos/orchestrator_service.proto @@ -804,6 +804,7 @@ message GetWorkItemsRequest { int32 maxConcurrentEntityWorkItems = 3; repeated WorkerCapability capabilities = 10; + SupportedActions supportedActions = 11; } enum WorkerCapability { @@ -826,6 +827,26 @@ enum WorkerCapability { WORKER_CAPABILITY_LARGE_PAYLOADS = 3; } +message SupportedActions { + repeated SupportedOrchestration orchestrations = 1; + repeated SupporrtedActivity activities = 2; + repeated SupportedEntity entities = 3; +} + +message SupportedOrchestration { + string name = 1; + repeated string versions = 2; +} + +message SupporrtedActivity { + string name = 1; + repeated string versions = 2; +} + +message SupportedEntity { + string name = 1; +} + message WorkItem { oneof request { OrchestratorRequest orchestratorRequest = 1; From 6f8d783553c37a5ce6a20d425fa93b8d054f50d4 Mon Sep 17 00:00:00 2001 From: Hal Spang Date: Mon, 12 Jan 2026 13:35:09 -0800 Subject: [PATCH 2/2] Rename to WorkItemFilters Signed-off-by: Hal Spang --- protos/orchestrator_service.proto | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/protos/orchestrator_service.proto b/protos/orchestrator_service.proto index b1553ce..9d77b5e 100644 --- a/protos/orchestrator_service.proto +++ b/protos/orchestrator_service.proto @@ -804,7 +804,7 @@ message GetWorkItemsRequest { int32 maxConcurrentEntityWorkItems = 3; repeated WorkerCapability capabilities = 10; - SupportedActions supportedActions = 11; + WorkItemFilters workItemFilters = 11; } enum WorkerCapability { @@ -827,23 +827,23 @@ enum WorkerCapability { WORKER_CAPABILITY_LARGE_PAYLOADS = 3; } -message SupportedActions { - repeated SupportedOrchestration orchestrations = 1; - repeated SupporrtedActivity activities = 2; - repeated SupportedEntity entities = 3; +message WorkItemFilters { + repeated OrchestrationFilter orchestrations = 1; + repeated ActivityFilter activities = 2; + repeated EntityFilter entities = 3; } -message SupportedOrchestration { +message OrchestrationFilter { string name = 1; repeated string versions = 2; } -message SupporrtedActivity { +message ActivityFilter { string name = 1; repeated string versions = 2; } -message SupportedEntity { +message EntityFilter { string name = 1; }