Skip to content

Commit 13e49f9

Browse files
authored
Add NamespaceUnavailableFailure (#481)
**Why?** To differentiate between a namespace that's temporary unavailable and not active. This new failure will be returned with a gRPC unavailable error and should be retried by clients automatically.
1 parent c5bab05 commit 13e49f9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

temporal/api/errordetails/v1/message.proto

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ message NamespaceNotActiveFailure {
5656
string active_cluster = 3;
5757
}
5858

59+
// NamespaceUnavailableFailure is returned by the service when a request addresses a namespace that is unavailable. For
60+
// example, when a namespace is in the process of failing over between clusters.
61+
// This is a transient error that should be automatically retried by clients.
62+
message NamespaceUnavailableFailure {
63+
string namespace = 1;
64+
}
65+
5966
message NamespaceInvalidStateFailure {
6067
string namespace = 1;
6168
// Current state of the requested namespace.
@@ -130,4 +137,4 @@ message MultiOperationExecutionFailure {
130137
string message = 2;
131138
repeated google.protobuf.Any details = 3;
132139
}
133-
}
140+
}

0 commit comments

Comments
 (0)