I need to manage multiple calls to Google api client python services as a single transaction (i.e. creating or updating two folders). Is there any way to do this ?
Asked
Active
Viewed 124 times
0

Paul Collingwood
- 9,053
- 3
- 23
- 36

lowcoupling
- 2,151
- 6
- 35
- 53
-
Please explain what is the use case. Why can't you make 2 consecutive or parallel requests? – AMS Jan 08 '15 at 10:18
-
When handling a http get i need to create a bunch of folders OR return 500. A partial result is not allowed. – lowcoupling Jan 08 '15 at 10:20
-
Well, then catch the exception and retry/undo/inform. Read https://developers.google.com/api-client-library/python/guide/batch for a way to make batch requests, but AFAIK it will not provide a backoff mechanism (https://developers.google.com/drive/web/handle-errors) – AMS Jan 08 '15 at 10:28