From 3a229c2743e28c1908fd70456575579d87cac2b0 Mon Sep 17 00:00:00 2001 From: rodrigozhou Date: Tue, 6 Sep 2022 15:45:12 -0700 Subject: [PATCH] Set upsert memo capability --- go.mod | 2 +- go.sum | 4 ++-- service/frontend/workflow_handler.go | 1 + service/frontend/workflow_handler_test.go | 1 + 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 7f8fd93cf88..40af6fdd95c 100644 --- a/go.mod +++ b/go.mod @@ -45,7 +45,7 @@ require ( go.opentelemetry.io/otel/metric v0.30.0 go.opentelemetry.io/otel/sdk v1.7.0 go.opentelemetry.io/otel/sdk/metric v0.30.0 - go.temporal.io/api v1.11.1-0.20220906182453-3f9531eab1d0 + go.temporal.io/api v1.11.1-0.20220907050538-6de5285cf463 go.temporal.io/sdk v1.16.1-0.20220901175455-d1f860c19f89 go.temporal.io/version v0.3.0 go.uber.org/atomic v1.10.0 diff --git a/go.sum b/go.sum index 09dc3f2138a..4700222b3ca 100644 --- a/go.sum +++ b/go.sum @@ -505,8 +505,8 @@ go.opentelemetry.io/proto/otlp v0.16.0/go.mod h1:H7XAot3MsfNsj7EXtrA2q5xSNQ10UqI go.opentelemetry.io/proto/otlp v0.18.0 h1:W5hyXNComRa23tGpKwG+FRAc4rfF6ZUg1JReK+QHS80= go.opentelemetry.io/proto/otlp v0.18.0/go.mod h1:H7XAot3MsfNsj7EXtrA2q5xSNQ10UqI405h3+duxN4U= go.temporal.io/api v1.11.1-0.20220804232755-77e12eef4f2d/go.mod h1:JWI21cif+WGqtgmar+dtxQOfYeGORmZtWUj/6/D0e9k= -go.temporal.io/api v1.11.1-0.20220906182453-3f9531eab1d0 h1:iSLTAuhL60+r035aDbcRFwLj/gdGv+qciecbUAFtanc= -go.temporal.io/api v1.11.1-0.20220906182453-3f9531eab1d0/go.mod h1:yZGA2AVWUri9TUol58DTosjQnQBLEMDnchA4u+v1i6E= +go.temporal.io/api v1.11.1-0.20220907050538-6de5285cf463 h1:ylSAQ8ldG7ZRu/0nuvcHBAvfSEZr/T4I9ZnSWe5xpWQ= +go.temporal.io/api v1.11.1-0.20220907050538-6de5285cf463/go.mod h1:yZGA2AVWUri9TUol58DTosjQnQBLEMDnchA4u+v1i6E= go.temporal.io/sdk v1.16.1-0.20220901175455-d1f860c19f89 h1:YgBLMeScA/oLIeGOLh9rV26p10KcatcyH46P2MEoI0Q= go.temporal.io/sdk v1.16.1-0.20220901175455-d1f860c19f89/go.mod h1:XHGK393x654eIHGNf9nXw6DpOJlW4OuvivfLb8n2E34= go.temporal.io/version v0.3.0 h1:dMrei9l9NyHt8nG6EB8vAwDLLTwx2SvRyucCSumAiig= diff --git a/service/frontend/workflow_handler.go b/service/frontend/workflow_handler.go index 68e05e03def..1676e59886b 100644 --- a/service/frontend/workflow_handler.go +++ b/service/frontend/workflow_handler.go @@ -2844,6 +2844,7 @@ func (wh *WorkflowHandler) GetSystemInfo(ctx context.Context, request *workflows ActivityFailureIncludeHeartbeat: true, SupportsSchedules: true, EncodedFailureAttributes: true, + UpsertMemo: true, }, }, nil } diff --git a/service/frontend/workflow_handler_test.go b/service/frontend/workflow_handler_test.go index d3cd015731e..11cb9de1cde 100644 --- a/service/frontend/workflow_handler_test.go +++ b/service/frontend/workflow_handler_test.go @@ -1861,6 +1861,7 @@ func (s *workflowHandlerSuite) TestGetSystemInfo() { s.True(resp.Capabilities.ActivityFailureIncludeHeartbeat) s.True(resp.Capabilities.SupportsSchedules) s.True(resp.Capabilities.EncodedFailureAttributes) + s.True(resp.Capabilities.UpsertMemo) } func (s *workflowHandlerSuite) TestStartBatchOperation_Terminate() {