Skip to content

Should we raise if an Operation contains on error while polling #2679

@dhermes

Description

@dhermes

When we call Operation.poll(), we check the payload returned and if the operation is both done and has an error set, we could easily raise an exception. We could raise a GaxError? The underyling protobuf type is google.rpc.Status. (ref: operation proto)

Metadata

Metadata

Labels

api: corepriority: p2Moderately-important priority. Fix may not be included in next release.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions