Skip to content

Use gRPC for abort requests #1922

Description

@gbregman

In some cases we abort a request by returning a req_status with a an error message. But, not all requests return a req_status rc. While we made sure that all responses start with the same fields as in req_status it is better to use existing gRPC methods to abort. Like https://grpc.github.io/grpc/python/grpc.html#grpc.ServicerContext.abort (context.abort()).

Notice that this can't be used in updates as we don't have gRPC context there.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status
🆕 New

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions