We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d83177 commit 76ded83Copy full SHA for 76ded83
src/Concerns/ManagesDataDefinitions.php
@@ -96,10 +96,18 @@ public function databaseExists()
96
*/
97
protected function waitForOperation(LongRunningOperation $operation): mixed
98
{
99
- $result = $operation->pollUntilComplete(['maxPollingDurationSeconds' => 0.0]);
+ $options = [];
100
+
101
+ if (getenv('SPANNER_EMULATOR_HOST')) {
102
+ $options['pollingIntervalSeconds'] = 0.001;
103
+ }
104
105
+ $result = $operation->pollUntilComplete($options);
106
107
if ($operation->error() !== null) {
108
throw new RuntimeException((string) json_encode($operation->error()));
109
}
110
111
return $result;
112
113
0 commit comments