| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| operation_future = api.async_recognize(config=config, audio=audio) | ||
|
|
||
| return Operation.from_pb(response, self) | ||
| return Operation.from_pb(operation_future._operation, self) |
|
Ideally, I would prefer the user get the OperationFuture object from GAX, and would like to look into why @daspecster is having trouble making it work. I will try to do that in the next day or so. That said, merging this is almost certainly preferable to (1) reverting #2962 (which fixes an item the Speech team identified as critical) or (2) leaving async broken. :-) |
Sorry, something went wrong.
|
@eoogbe I was getting a Rendezvous 404 when I tried to use OperationsClient.get_operation(). In this PR I'm just pulling _OperationFuture._operation but I'm sure that's not the intended way it should be used. Any help would be greatly appreciated! |
Sorry, something went wrong.
|
@lukesneeringer the _OperationFuture usage is updated. PTAL |
Sorry, something went wrong.
| operation_future = api.async_recognize(config=config, audio=audio) | ||
|
|
||
| return Operation.from_pb(response, self) | ||
| return Operation.from_pb(operation_future.last_operation_data(), self) |
|
@lukesneeringer do you have anything else for this? |
Sorry, something went wrong.
|
Yeah, I am writing an _OperationFuture clone to go into google.cloud.core this morning. |
Sorry, something went wrong.
|
Okay, I am aborting that for now. The rabbit hole is going too far. Yes, you can merge this. |
Sorry, something went wrong.
…leapis#2965) * Update after googleapis#2962 to fill out http side and handle new LRO. * Update _OperationsFuture usage. * Mock OperationsClient.
* Update after #2962 to fill out http side and handle new LRO. * Update _OperationsFuture usage. * Mock OperationsClient.
* Update after #2962 to fill out http side and handle new LRO. * Update _OperationsFuture usage. * Mock OperationsClient.
* Update after #2962 to fill out http side and handle new LRO. * Update _OperationsFuture usage. * Mock OperationsClient.
| Back | FazBrowse Home | New Git URL |
This is an update to fill out the HTTP side of #2962 and I have a hacky but effective way to handle the new LRO.
I tried using the OperationsClient but for some reason it just kept 404ing. I'm not sure what I was doing wrong.
/cc @lukesneeringer