From 11a12edfe74df3f40c2879006b006ad49fd9402c Mon Sep 17 00:00:00 2001 From: Lina Jodoin Date: Mon, 11 May 2026 15:50:36 -0700 Subject: [PATCH] Add state_size_bytes to ScheduleInfo, ScheduleListInfo --- openapi/openapiv2.json | 10 ++++++++++ openapi/openapiv3.yaml | 6 ++++++ temporal/api/schedule/v1/message.proto | 6 ++++++ 3 files changed, 22 insertions(+) diff --git a/openapi/openapiv2.json b/openapi/openapiv2.json index 917fce76c..9f0903e0d 100644 --- a/openapi/openapiv2.json +++ b/openapi/openapiv2.json @@ -18397,6 +18397,11 @@ "invalidScheduleError": { "type": "string", "description": "Deprecated." + }, + "stateSizeBytes": { + "type": "string", + "format": "int64", + "description": "Size of the schedule's internal state (including payloads) in bytes." } } }, @@ -18450,6 +18455,11 @@ "type": "string", "format": "date-time" } + }, + "stateSizeBytes": { + "type": "string", + "format": "int64", + "description": "Size of the schedule's internal state (including payloads) in bytes." } }, "description": "ScheduleListInfo is an abbreviated set of values from Schedule and ScheduleInfo\nthat's returned in ListSchedules." diff --git a/openapi/openapiv3.yaml b/openapi/openapiv3.yaml index 4ada710f0..b0e914629 100644 --- a/openapi/openapiv3.yaml +++ b/openapi/openapiv3.yaml @@ -15450,6 +15450,9 @@ components: invalidScheduleError: type: string description: Deprecated. + stateSizeBytes: + type: string + description: Size of the schedule's internal state (including payloads) in bytes. ScheduleListEntry: type: object properties: @@ -15493,6 +15496,9 @@ components: items: type: string format: date-time + stateSizeBytes: + type: string + description: Size of the schedule's internal state (including payloads) in bytes. description: |- ScheduleListInfo is an abbreviated set of values from Schedule and ScheduleInfo that's returned in ListSchedules. diff --git a/temporal/api/schedule/v1/message.proto b/temporal/api/schedule/v1/message.proto index b35e1f0eb..3a0a9344c 100644 --- a/temporal/api/schedule/v1/message.proto +++ b/temporal/api/schedule/v1/message.proto @@ -349,6 +349,9 @@ message ScheduleInfo { // Deprecated. string invalid_schedule_error = 8 [deprecated = true]; + + // Size of the schedule's internal state (including payloads) in bytes. + int64 state_size_bytes = 12; } message Schedule { @@ -377,6 +380,9 @@ message ScheduleListInfo { // From info (maybe fewer entries): repeated ScheduleActionResult recent_actions = 5; repeated google.protobuf.Timestamp future_action_times = 6; + + // Size of the schedule's internal state (including payloads) in bytes. + int64 state_size_bytes = 7; } // ScheduleListEntry is returned by ListSchedules.