bricolage-streamingload 0.16.1 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +31 -24
- data/RELEASE.md +4 -0
- data/bricolage-streamingload.gemspec +2 -1
- data/lib/bricolage/streamingload/dispatcher.rb +8 -1
- data/lib/bricolage/streamingload/job.rb +8 -1
- data/lib/bricolage/streamingload/version.rb +1 -1
- metadata +20 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f3e8cfb62766f9de7ef2ff91a8b9a7defce6403560338973734af68422d2fcb
|
4
|
+
data.tar.gz: 359732332455a7db82c20cb3ebc2ccfcdc830d35595dfdae7b515e57cafd77ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80365541531153a42be70362e04e8d6ee89eb639df4d9fcfb899c95e6516b92be8ac81e9b1da27acb14f919e5d2abdc408ebe2e75460c65063e01b1e7b718418
|
7
|
+
data.tar.gz: c90d2c27285681a950bb1d95c076a83bbd95cbb0863651e1b26ab0f12690ee58da8b5759187f65a8cc883fc4ea680c76706fa337a93d5011a58ea9bec7a60e83
|
data/Gemfile.lock
CHANGED
@@ -1,44 +1,51 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
bricolage-streamingload (0.
|
4
|
+
bricolage-streamingload (0.16.1)
|
5
5
|
aws-sdk-s3 (~> 1.8)
|
6
6
|
aws-sdk-sqs (~> 1.3)
|
7
|
-
bricolage (
|
7
|
+
bricolage (~> 5.30)
|
8
8
|
pg (~> 0.18.0)
|
9
|
+
sentry-raven (~> 3.0)
|
9
10
|
|
10
11
|
GEM
|
11
12
|
remote: https://rubygems.org/
|
12
13
|
specs:
|
13
|
-
aws-eventstream (1.0
|
14
|
-
aws-partitions (1.
|
15
|
-
aws-sdk-core (3.
|
16
|
-
aws-eventstream (~> 1.0)
|
17
|
-
aws-partitions (~> 1.0)
|
18
|
-
aws-sigv4 (~> 1.
|
14
|
+
aws-eventstream (1.1.0)
|
15
|
+
aws-partitions (1.351.0)
|
16
|
+
aws-sdk-core (3.104.3)
|
17
|
+
aws-eventstream (~> 1, >= 1.0.2)
|
18
|
+
aws-partitions (~> 1, >= 1.239.0)
|
19
|
+
aws-sigv4 (~> 1.1)
|
19
20
|
jmespath (~> 1.0)
|
20
|
-
aws-sdk-kms (1.
|
21
|
-
aws-sdk-core (~> 3)
|
22
|
-
aws-sigv4 (~> 1.
|
23
|
-
aws-sdk-s3 (1.
|
24
|
-
aws-sdk-core (~> 3, >= 3.
|
21
|
+
aws-sdk-kms (1.36.0)
|
22
|
+
aws-sdk-core (~> 3, >= 3.99.0)
|
23
|
+
aws-sigv4 (~> 1.1)
|
24
|
+
aws-sdk-s3 (1.75.0)
|
25
|
+
aws-sdk-core (~> 3, >= 3.104.1)
|
25
26
|
aws-sdk-kms (~> 1)
|
26
|
-
aws-sigv4 (~> 1.
|
27
|
-
aws-sdk-sns (1.
|
28
|
-
aws-sdk-core (~> 3)
|
29
|
-
aws-sigv4 (~> 1.
|
30
|
-
aws-sdk-sqs (1.
|
31
|
-
aws-sdk-core (~> 3)
|
32
|
-
aws-sigv4 (~> 1.
|
33
|
-
aws-sigv4 (1.
|
34
|
-
|
27
|
+
aws-sigv4 (~> 1.1)
|
28
|
+
aws-sdk-sns (1.28.0)
|
29
|
+
aws-sdk-core (~> 3, >= 3.99.0)
|
30
|
+
aws-sigv4 (~> 1.1)
|
31
|
+
aws-sdk-sqs (1.30.0)
|
32
|
+
aws-sdk-core (~> 3, >= 3.99.0)
|
33
|
+
aws-sigv4 (~> 1.1)
|
34
|
+
aws-sigv4 (1.2.1)
|
35
|
+
aws-eventstream (~> 1, >= 1.0.2)
|
36
|
+
bricolage (5.30.0)
|
35
37
|
aws-sdk-s3 (~> 1)
|
36
38
|
aws-sdk-sns (~> 1)
|
37
39
|
pg (~> 0.18.0)
|
40
|
+
faraday (1.0.1)
|
41
|
+
multipart-post (>= 1.2, < 3)
|
38
42
|
jmespath (1.4.0)
|
43
|
+
multipart-post (2.1.1)
|
39
44
|
pg (0.18.4)
|
40
45
|
power_assert (1.1.3)
|
41
|
-
rake (12.3.
|
46
|
+
rake (12.3.3)
|
47
|
+
sentry-raven (3.0.0)
|
48
|
+
faraday (>= 1.0)
|
42
49
|
test-unit (3.2.8)
|
43
50
|
power_assert
|
44
51
|
|
@@ -51,4 +58,4 @@ DEPENDENCIES
|
|
51
58
|
test-unit
|
52
59
|
|
53
60
|
BUNDLED WITH
|
54
|
-
1.
|
61
|
+
1.17.2
|
data/RELEASE.md
CHANGED
@@ -17,10 +17,11 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.require_path = 'lib'
|
18
18
|
|
19
19
|
s.required_ruby_version = '>= 2.3.0'
|
20
|
-
s.add_dependency 'bricolage', '
|
20
|
+
s.add_dependency 'bricolage', '~> 5.30'
|
21
21
|
s.add_dependency 'pg', '~> 0.18.0'
|
22
22
|
s.add_dependency 'aws-sdk-s3', '~> 1.8'
|
23
23
|
s.add_dependency 'aws-sdk-sqs', '~> 1.3'
|
24
|
+
s.add_dependency 'sentry-raven', '~> 3.0'
|
24
25
|
s.add_development_dependency 'rake'
|
25
26
|
s.add_development_dependency 'test-unit'
|
26
27
|
end
|
@@ -10,8 +10,9 @@ require 'bricolage/streamingload/chunkbuffer'
|
|
10
10
|
require 'bricolage/streamingload/loadtasklogger'
|
11
11
|
require 'bricolage/streamingload/alertinglogger'
|
12
12
|
require 'yaml'
|
13
|
-
require 'optparse'
|
14
13
|
require 'fileutils'
|
14
|
+
require 'raven'
|
15
|
+
require 'optparse'
|
15
16
|
|
16
17
|
module Bricolage
|
17
18
|
|
@@ -20,6 +21,12 @@ module Bricolage
|
|
20
21
|
class Dispatcher < SQSDataSource::MessageHandler
|
21
22
|
|
22
23
|
def Dispatcher.main
|
24
|
+
Raven.capture {
|
25
|
+
_main
|
26
|
+
}
|
27
|
+
end
|
28
|
+
|
29
|
+
def Dispatcher._main
|
23
30
|
opts = DispatcherOptions.new(ARGV)
|
24
31
|
opts.parse
|
25
32
|
unless opts.rest_arguments.size == 1
|
@@ -3,6 +3,7 @@ require 'bricolage/streamingload/manifest'
|
|
3
3
|
require 'bricolage/sqlutils'
|
4
4
|
require 'socket'
|
5
5
|
require 'json'
|
6
|
+
require 'raven'
|
6
7
|
|
7
8
|
module Bricolage
|
8
9
|
|
@@ -44,7 +45,8 @@ module Bricolage
|
|
44
45
|
def execute(fail_fast: false)
|
45
46
|
execute_task
|
46
47
|
return true
|
47
|
-
rescue JobCancelled
|
48
|
+
rescue JobCancelled => ex
|
49
|
+
Raven.capture_exception(ex)
|
48
50
|
return true
|
49
51
|
rescue JobDuplicated
|
50
52
|
return true
|
@@ -52,20 +54,25 @@ module Bricolage
|
|
52
54
|
return false
|
53
55
|
rescue ControlConnectionFailed => ex
|
54
56
|
@logger.error ex.message
|
57
|
+
Raven.capture_exception(ex)
|
55
58
|
wait_for_connection('ctl', @ctl_ds) unless fail_fast
|
56
59
|
return false
|
57
60
|
rescue DataConnectionFailed => ex
|
58
61
|
@logger.error ex.message
|
62
|
+
Raven.capture_exception(ex)
|
59
63
|
wait_for_connection('data', @data_ds) unless fail_fast
|
60
64
|
return false
|
61
65
|
rescue JobFailure => ex
|
62
66
|
@logger.error ex.message
|
67
|
+
Raven.capture_exception(ex)
|
63
68
|
return false
|
64
69
|
rescue JobError => ex
|
65
70
|
@logger.error ex.message
|
71
|
+
Raven.capture_exception(ex)
|
66
72
|
return false
|
67
73
|
rescue Exception => ex
|
68
74
|
@logger.exception ex
|
75
|
+
Raven.capture_exception(ex)
|
69
76
|
return true
|
70
77
|
end
|
71
78
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bricolage-streamingload
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.17.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Minero Aoki
|
@@ -9,22 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-08-
|
12
|
+
date: 2020-08-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bricolage
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 5.
|
20
|
+
version: '5.30'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - "
|
25
|
+
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 5.
|
27
|
+
version: '5.30'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: pg
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -67,6 +67,20 @@ dependencies:
|
|
67
67
|
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '1.3'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: sentry-raven
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - "~>"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '3.0'
|
77
|
+
type: :runtime
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - "~>"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '3.0'
|
70
84
|
- !ruby/object:Gem::Dependency
|
71
85
|
name: rake
|
72
86
|
requirement: !ruby/object:Gem::Requirement
|