Skip to content

Commit

Permalink
fix: explicitly stop worker threads
Browse files Browse the repository at this point in the history
This was previously done at Launcher level, but
has now been delegated to platform implementation
  • Loading branch information
hassy committed Jul 19, 2024
1 parent 9134f9c commit bbd4fee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/artillery/lib/platform/local/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ class PlatformLocal {
// 'after' hook is executed in the main thread, after all workers
// are done
await this.runHook('after', this.contextVars);

for (const [workerId, w] of Object.entries(this.workers)) {
await this.stopWorker(workerId);
}
}

// ********
Expand Down

0 comments on commit bbd4fee

Please sign in to comment.