embulk-plugin-input-sfdc-event-log-files 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/embulk/input_sfdc_event_log_files.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 184f6efcc9eea847d8a7e3cf727e29f7cc6aa78a
|
4
|
+
data.tar.gz: 656f73d9bca6192070839d6ec55aee04f64e2b97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06174c525e488afbb73f27f589f1df4798d21c3f84a088a4b4e80b84d204c614cd7e1aa501411f450e732c2333e628f359fdd4e88edc53e16281f845405c6448
|
7
|
+
data.tar.gz: 8ec5eb00b1a775626d793f63b8dc07bbbe024d00f3cabb2b8fa19bc30bc64c7ff0733574caeedc0be652b54fe7970df1bc44723c4c25f616086173e7a6605d1e
|
@@ -20,6 +20,8 @@ module Embulk
|
|
20
20
|
'last_log_date' => config.param('last_log_date', :string, default: '0001-01-01T00:00:00Z'),
|
21
21
|
'max_retry_times' => config.param('max_retry_times', :integer, default: 2),
|
22
22
|
}
|
23
|
+
idx = -1
|
24
|
+
schema = config.param('schema', :array).map { |c| idx += 1; Column.new(idx, c['name'], c['type'].to_sym) }
|
23
25
|
threads = config.param('threads', :integer, default: 2)
|
24
26
|
task['client'] = client = HTTPClient.new
|
25
27
|
|
@@ -27,7 +29,7 @@ module Embulk
|
|
27
29
|
oauth(task)
|
28
30
|
task['records'] = query(task)
|
29
31
|
|
30
|
-
reports = yield(task,
|
32
|
+
reports = yield(task, schema, threads)
|
31
33
|
|
32
34
|
last_log_date_report = reports.max_by { |report|
|
33
35
|
report['last_log_date']
|