lib/fluent/plugin/bigquery/errors.rb in fluent-plugin-bigquery-0.4.1 vs lib/fluent/plugin/bigquery/errors.rb in fluent-plugin-bigquery-0.4.2
- old
+ new
@@ -2,10 +2,10 @@
module BigQuery
# @abstract
class Error < StandardError
RETRYABLE_ERROR_REASON = %w(backendError internalError rateLimitExceeded tableUnavailable).freeze
RETRYABLE_INSERT_ERRORS_REASON = %w(timeout).freeze
- RETRYABLE_STATUS_CODE = [500, 503]
+ RETRYABLE_STATUS_CODE = [500, 502, 503, 504]
class << self
def wrap(google_api_error, message = nil, force_unretryable: false)
e = google_api_error
return UnRetryableError.new(message, e) if force_unretryable