Use operations.Wait for Google driver
Overview
For the google
driver every operation such as creating a machine, disk, and firewall rule requires us to [wait for that operation to succeed. This involves us long-polling the Google API to check if the operation has finished. However, this causes a lot of unnecessary API calls.
New google SDK provides operations.wait
where you pass the operation ID (in the response) to operations.wait($ID)
call to wait for it to complete without polling in a busy loop. That way, you don't have to run compute.instances.get
every second or so.
Proposal
We need to update the google SDK (!52 (merged)) to have the new endpoint available which is the riskiest and largest amount of work to fix this issue. After we update the google SDK we should have access to the call and swap to it.