@ikonintegration/ikapi 3.1.30 → 3.1.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ikonintegration/ikapi",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.31",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "main.js",
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
"author": "",
|
|
12
12
|
"license": "ISC",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@aws-sdk/client-dynamodb": "^3.
|
|
15
|
-
"@aws-sdk/client-ses": "^3.
|
|
16
|
-
"@aws-sdk/client-sns": "^3.
|
|
17
|
-
"@aws-sdk/credential-provider-node": "^3.
|
|
14
|
+
"@aws-sdk/client-dynamodb": "^3.145.0",
|
|
15
|
+
"@aws-sdk/client-ses": "^3.145.0",
|
|
16
|
+
"@aws-sdk/client-sns": "^3.145.0",
|
|
17
|
+
"@aws-sdk/credential-provider-node": "^3.145.0",
|
|
18
18
|
"@aws-sdk/node-http-handler": "^3.127.0",
|
|
19
|
-
"@aws-sdk/util-dynamodb": "^3.
|
|
20
|
-
"@ikonintegration/mod-resources-tracker-client": "0.0.
|
|
19
|
+
"@aws-sdk/util-dynamodb": "^3.145.0",
|
|
20
|
+
"@ikonintegration/mod-resources-tracker-client": "0.0.18",
|
|
21
21
|
"abind": "^1.0.5",
|
|
22
22
|
"bluebird": "^3.7.2",
|
|
23
23
|
"email-templates": "^8.0.8",
|
|
@@ -24,9 +24,9 @@ export default class IKExecutionTracker {
|
|
|
24
24
|
}
|
|
25
25
|
async quickDrain() {
|
|
26
26
|
try {
|
|
27
|
-
//Check for client
|
|
28
|
-
if (!this.client
|
|
29
|
-
//drain stats
|
|
27
|
+
//Check for client but claimers
|
|
28
|
+
if (!this.client) return; //disabled
|
|
29
|
+
//drain stats (drain will filter for events with claimers only)
|
|
30
30
|
await this.client.drain(this.claimers);
|
|
31
31
|
} catch (e) { console.error(`Error while draining tracker events: ${e}`); }
|
|
32
32
|
}
|
|
@@ -36,12 +36,12 @@ export default class IKExecutionTracker {
|
|
|
36
36
|
if (this.drainedExecution) return;
|
|
37
37
|
this.drainedExecution = true;
|
|
38
38
|
//Check for client and claimers
|
|
39
|
-
if (!this.client
|
|
39
|
+
if (!this.client) return; //disabled
|
|
40
40
|
//detect execution and log (ECS or lambda)
|
|
41
41
|
this._detectExecutionAndLog();
|
|
42
42
|
//detect DB and log (DDB only for now)
|
|
43
43
|
this._collectDDBStats();
|
|
44
|
-
//drain stats
|
|
44
|
+
//drain stats (drain will filter for events with claimers only)
|
|
45
45
|
await this.client.drain(this.claimers);
|
|
46
46
|
} catch (e) { console.error(`Error while tracking execution: ${e}`); }
|
|
47
47
|
}
|