naginegi 0.5.0 → 0.6.0

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
  SHA256:
3
- metadata.gz: 8d04a1b61b8907c2b7d03ec4be2ea36097f44c52fca562681481d154314ac87f
4
- data.tar.gz: 963141aa4c7ca6144dd9fc553e518af27be576907e8cb7e95865bed87bda8dc3
3
+ metadata.gz: f46ab7c3279930d159dc1603539e4dadfdbd97e1587f76896171548bb470bd62
4
+ data.tar.gz: 4e96e4bb63bbe2140214e4a7f0b99741b4ef21eb3401bc0c94ba8ead1bc08891
5
5
  SHA512:
6
- metadata.gz: 1368397fccb115f3785c485e8ef9b456e99ea7ca4310c0961a9f83dd67cbcec51295561cfe7d74a87f3b62adbd006a552c31bf99c80b72f7e65abc8dfc9f543d
7
- data.tar.gz: 9fa489733086e3b59e46b27c9c3aaa48b5ab520a29ddffb3bfc9fb945766d37dd791ae4eabcf7759d7c24e6be4c0596cad67b2d17ec97ad30b94adae380ae30f
6
+ metadata.gz: bcd8cb3b88f223af9c9cb8c7d9a18679a5660080bed3fd7caf8f62e9ab2432bfa5189c10a26a4bf77406f021097d07e06159726b1bfdca1d68694c9386849963
7
+ data.tar.gz: e75185eb05726bdf2f39fc46dbe5d14f06ad3f5959c30009aedcb4afd31023c1f29333f66a2d1e4e67a8598e49ec3c65431bac85f377a46de1a060378ddab156
@@ -20,7 +20,7 @@ module Naginegi
20
20
  Naginegi::EmbulkConfig.new.generate_config(@db_configs, bq_config)
21
21
  end
22
22
 
23
- def run(bq_config, target_table_names = [], retry_max = 0)
23
+ def run(bq_config, target_table_names = [], retry_max = 2)
24
24
  cmd = 'embulk --version'
25
25
  unless system(cmd)
26
26
  @logger.error('Cannot execute Embulk!!')
@@ -29,6 +29,13 @@ module Naginegi
29
29
  end
30
30
 
31
31
  error_tables = run_and_retry(bq_config, target_table_names, retry_max, 0)
32
+ unless error_tables.empty?
33
+ @logger.error('------------------------------------')
34
+ @logger.error('[FAILED TABLES]')
35
+ error_tables.each { |table| @logger.error(table) }
36
+ @logger.error('------------------------------------')
37
+ end
38
+
32
39
  error_tables.empty?
33
40
  end
34
41
 
@@ -1,3 +1,3 @@
1
1
  module Naginegi
2
- VERSION = '0.5.0'.freeze
2
+ VERSION = '0.6.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: naginegi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - cobot00
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-28 00:00:00.000000000 Z
11
+ date: 2020-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler