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.
2 parents 3c9d1cd + 28bd6ec commit 8b0145eCopy full SHA for 8b0145e
lib/embulk/output/bigquery/google_client.rb
@@ -50,7 +50,13 @@ def with_network_retry(&block)
50
begin
51
yield
52
rescue ::Java::Java.net.SocketException, ::Java::Java.net.ConnectException => e
53
- if ['Broken pipe', 'Connection reset', 'Connection timed out'].select { |x| e.message.include?(x) }.empty?
+ retry_messages = [
54
+ 'Broken pipe',
55
+ 'Connection reset',
56
+ 'Connection timed out',
57
+ 'Connection or outbound has closed',
58
+ ]
59
+ if retry_messages.select { |x| e.message.include?(x) }.empty?
60
raise e
61
else
62
if retries < @task['retries']
0 commit comments