@ikonintegration/ikapi 3.1.18 → 3.1.19
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
|
@@ -34,10 +34,10 @@ export default class IKExecutionTracker {
|
|
|
34
34
|
if (Utils.isHybridlessContainer()) {
|
|
35
35
|
//ECS, get metadata info and log if applicable and succeeded on it
|
|
36
36
|
const context = this._getECSMetadataObject();
|
|
37
|
-
console.debug('Context', context);
|
|
38
|
-
if (context && context.
|
|
39
|
-
const extraDetails = { startTime: this.startedOn, endTime: Date.now(), taskConfig: { cpu: process.env.CPU, memory: process.env.MEMORY } };
|
|
40
|
-
const event = RTClient.newECSExecutionEvent(context.
|
|
37
|
+
// console.debug('Context', context);
|
|
38
|
+
if (context && context.ContainerInstanceARN) {
|
|
39
|
+
const extraDetails = { startTime: this.startedOn, endTime: Date.now(), taskConfig: { cpu: process.env.CPU, memory: process.env.MEMORY, taskName: context.TaskDefinitionFamily } };
|
|
40
|
+
const event = RTClient.newECSExecutionEvent(context.TaskARN, context.ContainerInstanceARN, extraDetails);
|
|
41
41
|
this.appendEvent(event);
|
|
42
42
|
}
|
|
43
43
|
} else {
|