Skip to content

Commit

Permalink
Retry on 502 errors (#877)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwsupplee authored Jan 31, 2018
1 parent 230b13f commit f3db719
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/BigQuery/BigQueryClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class BigQueryClient
*/
public function __construct(array $config = [])
{
$this->setHttpRetryCodes([]);
$this->setHttpRetryCodes([502]);
$this->setHttpRetryMessages([
'rateLimitExceeded',
'backendError'
Expand Down
2 changes: 1 addition & 1 deletion src/BigQuery/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function __construct(
'datasetId' => $datasetId,
'projectId' => $projectId
];
$this->setHttpRetryCodes([]);
$this->setHttpRetryCodes([502]);
$this->setHttpRetryMessages([
'rateLimitExceeded',
'backendError'
Expand Down

0 comments on commit f3db719

Please sign in to comment.