@@ -52,41 +52,44 @@ message CallbackExecutionInfo {
5252 // Information on how this callback should be invoked (e.g. its URL and type).
5353 temporal.api.common.v1.Callback callback = 3 ;
5454
55- // Current state of the callback execution.
56- temporal.api.enums.v1.CallbackExecutionState state = 4 ;
55+ // A general status for this callback, indicates whether it is currently running or in one of the terminal statuses.
56+ temporal.api.enums.v1.CallbackExecutionStatus status = 4 ;
57+
58+ // The detailed state of this callback, provides more granular information than the general status.
59+ temporal.api.enums.v1.CallbackState state = 5 ;
5760
5861 // The number of attempts made to deliver the callback.
5962 // This number represents a minimum bound since the attempt is incremented after the callback request completes.
60- int32 attempt = 5 ;
63+ int32 attempt = 6 ;
6164
6265 // The time when the callback was created/scheduled.
63- google.protobuf.Timestamp create_time = 6 ;
66+ google.protobuf.Timestamp create_time = 7 ;
6467
6568 // The time when the last attempt completed.
66- google.protobuf.Timestamp last_attempt_complete_time = 7 ;
69+ google.protobuf.Timestamp last_attempt_complete_time = 8 ;
6770
6871 // The last attempt's failure, if any.
69- temporal.api.failure.v1.Failure last_attempt_failure = 8 ;
72+ temporal.api.failure.v1.Failure last_attempt_failure = 9 ;
7073
7174 // The time when the next attempt is scheduled.
72- google.protobuf.Timestamp next_attempt_schedule_time = 9 ;
75+ google.protobuf.Timestamp next_attempt_schedule_time = 10 ;
7376
7477 // If the state is BLOCKED, provides additional information.
75- string blocked_reason = 10 ;
78+ string blocked_reason = 11 ;
7679
7780 // Time when the callback transitioned to a terminal state.
78- google.protobuf.Timestamp close_time = 11 ;
81+ google.protobuf.Timestamp close_time = 12 ;
7982
8083 // Search attributes for indexing.
81- temporal.api.common.v1.SearchAttributes search_attributes = 12 ;
84+ temporal.api.common.v1.SearchAttributes search_attributes = 13 ;
8285
8386 // Schedule-to-close timeout for this callback.
8487 // (-- api-linter: core::0140::prepositions=disabled
8588 // aip.dev/not-precedent: "to" is used to indicate interval. --)
86- google.protobuf.Duration schedule_to_close_timeout = 13 ;
89+ google.protobuf.Duration schedule_to_close_timeout = 14 ;
8790
8891 // Incremented each time the callback's state is mutated in persistence.
89- int64 state_transition_count = 14 ;
92+ int64 state_transition_count = 15 ;
9093}
9194
9295// Limited callback information returned in the list response.
@@ -97,8 +100,9 @@ message CallbackExecutionListInfo {
97100 // Run ID of the callback execution.
98101 string run_id = 2 ;
99102
100- // Current state of the callback execution.
101- temporal.api.enums.v1.CallbackExecutionState state = 3 ;
103+ // Only running and terminal statuses appear here. More detailed information in CallbackExecutionInfo but not
104+ // available in the list response.
105+ temporal.api.enums.v1.CallbackExecutionStatus status = 3 ;
102106
103107 // The time when the callback was created/scheduled.
104108 google.protobuf.Timestamp create_time = 4 ;
0 commit comments