triglav-agent-bigquery 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d7a186de9c6e0067a4d126a34bdc385d9530bd7a
4
- data.tar.gz: 49a92bd870852241ee0bc1baab990c7129482cdf
3
+ metadata.gz: 357bd10b9b08577dbc370033df229e6d66b150f5
4
+ data.tar.gz: 6bb18d3759c31b62502c464e4e29ab125a0cf2b6
5
5
  SHA512:
6
- metadata.gz: 28fe97ff1a8b026615961347cb357c6e5622dbd8ea5fcb1bf61671fb61d2ab04b80b67e0461b9b45cd05b42649adf5d8fb346e7ddf5133f038d02add1e9901b9
7
- data.tar.gz: b75ba41d1bdc5cc6d3e8fda6628336456d43b12b1335533e1377db4bf2b56730afedc27c3148c2aa55a70fef3f282c287e0ace7cb7b251cef73064bcc91b13bc
6
+ metadata.gz: aee756547fe4c6815769c8b950de6acf12d9293cb200c667f77bf7977ba9d7d6e080fa8511ebecfbf065eaea6ac6ef8bdc85c44826e9ee104c9977a9e3ce0c41
7
+ data.tar.gz: 3fdfccd06094162d7e5485a47c38ef1581e32705b21e74357ea99b0b2b277429da2f0c51221d4689f01f5cb022e37987cd11a7f8db263842fd0f295d55941764
@@ -1,3 +1,8 @@
1
+ # 1.0.1 (2017-04-22)
2
+
3
+ * Fix NameError uninitialized constant HARD_TIMEOUT_SEC
4
+
1
5
  # 1.0.0 (2017-04-14)
2
6
 
3
7
  initial version
8
+
@@ -190,7 +190,7 @@ module Triglav::Agent
190
190
  break if res[:jobComplete]
191
191
  sleep 3
192
192
 
193
- if (Time.now - started).to_i > HARD_TIMEOUT_SEC
193
+ if (Time.now - started).to_i > hard_timeout_sec
194
194
  raise RuntimeError.new("Query is timeout")
195
195
  end
196
196
  end
@@ -288,6 +288,10 @@ module Triglav::Agent
288
288
  def open_timeout_sec
289
289
  @open_timeout_sec ||= ENV['OPEN_TIMEOUT_SEC'] || @connection_info.fetch(:open_timeout_sec, nil) || $setting.dig(:bigquery, :open_timeout_sec) || 300
290
290
  end
291
+
292
+ def hard_timeout_sec
293
+ read_timeout_sec * 2
294
+ end
291
295
  end
292
296
  end
293
297
  end
@@ -1,7 +1,7 @@
1
1
  module Triglav
2
2
  module Agent
3
3
  module Bigquery
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: triglav-agent-bigquery
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Triglav Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-13 00:00:00.000000000 Z
11
+ date: 2017-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: triglav-agent
@@ -199,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
199
199
  version: '0'
200
200
  requirements: []
201
201
  rubyforge_project:
202
- rubygems_version: 2.5.2
202
+ rubygems_version: 2.6.11
203
203
  signing_key:
204
204
  specification_version: 4
205
205
  summary: BigQuery agent for triglav, data-driven workflow tool.