Skip to content

Commit

Permalink
fix(fargate): send taskArns of non-leader tasks to cloud (#2421)
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardobridge committed Jan 17, 2024
1 parent 9eb6e31 commit e2eb716
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/artillery/lib/platform/aws-ecs/legacy/run-cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -1583,9 +1583,11 @@ async function ecsRunTask(context) {
}

if (runData.tasks?.length > 0) {
context.taskArns = context.taskArns.concat(
runData.tasks.map((task) => task.taskArn)
);
const newTaskArns = runData.tasks.map((task) => task.taskArn);
context.taskArns = context.taskArns.concat(newTaskArns);
artillery.globalEvents.emit('metadata', {
platformMetadata: { taskArns: newTaskArns }
});
debug(`Launched ${launchCount} tasks`);
tasksRemaining -= launchCount;
await sleep(250);
Expand Down

0 comments on commit e2eb716

Please sign in to comment.