embulk-input-facebook_ads_insights 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/build.gradle +1 -1
- data/src/main/java/org/embulk/input/facebook_ads_insights/Client.java +7 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ded968a200fd475e9d9da39be05631fca7f37586
|
4
|
+
data.tar.gz: 23229851faaafed837dd3c79cd2913ccf2d76737
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ffb9c3515a072d50cbc50c0d4e9768293170890f008669901d2e0d736325146e611511f493c8868e30976dde0d78328f6a5d046fb56482fc3d69e8a2a5ddb0c
|
7
|
+
data.tar.gz: b03289412d1321415ad83e9fa76437456ce42c2cfae2afb38159021452096ededa127c3f82fcd31e47226487c4ce563038666abee396c9ed8b573c928a1ee85b
|
data/build.gradle
CHANGED
@@ -56,9 +56,16 @@ public class Client
|
|
56
56
|
default: throw new IllegalArgumentException();
|
57
57
|
}
|
58
58
|
logger.info(adReportRun.getRawResponse());
|
59
|
+
int asyncLoopCount = 0;
|
59
60
|
while (adReportRun.fetch().getFieldAsyncPercentCompletion() != 100) {
|
60
61
|
logger.info(adReportRun.getRawResponse());
|
61
62
|
Thread.sleep(ASYNC_SLEEP_TIME);
|
63
|
+
if (adReportRun.getFieldAsyncStatus().equals("Job Skipped")) {
|
64
|
+
throw new RuntimeException("async was aborted because the AsyncStatus is \"Job Skipped\"");
|
65
|
+
}
|
66
|
+
if (++asyncLoopCount >= 300) {
|
67
|
+
throw new RuntimeException("async was aborted because the number of retries exceeded the limit");
|
68
|
+
}
|
62
69
|
}
|
63
70
|
logger.info(adReportRun.getRawResponse());
|
64
71
|
// extra waiting
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk-input-facebook_ads_insights
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- naotaka nakane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -50,7 +50,7 @@ files:
|
|
50
50
|
- README.md
|
51
51
|
- build.gradle
|
52
52
|
- classpath/annotations-13.0.jar
|
53
|
-
- classpath/embulk-input-facebook_ads_insights-0.1.
|
53
|
+
- classpath/embulk-input-facebook_ads_insights-0.1.8.jar
|
54
54
|
- classpath/facebook-java-business-sdk-8.0.2.jar
|
55
55
|
- classpath/gson-2.5.jar
|
56
56
|
- classpath/guava-20.0.jar
|